总结
豆包 AI 助手文章总结

学习如何使用MATLAB求解sinc函数的逆函数

PHPz
发布: 2024-01-14 17:45:28
转载
902人浏览过

助matlab如何解sinc函数的反函数

助matlab如何解sinc函数的反函数

for k=1:length(y)

f=@(x)y(k)*x-sin(x);

ezplot(f);%画图,观察函数零点在x0(k)附近

z(k)=fzero(f,x0(k));%调用fzero函数找零点

endsxf2012(站内联系ta)%%以y为一个数据为例,假设y值为y0,则令

%f=@(x)y0-sin(x)/x;%%用命令:%ezplot(f);

%%画图,观察函数,随便找零点附近的一个坐标x0

%% 则,要的零点为

%z=fzero(f,x0);%调用fzero函数找零点

%比如y0=0.6,通过令

f=@(x)0.6-sin(x)/x;%画图ezplot(f)hold onplot(,,'r')

%观察知,零点在-2和2附近,用

z1=fzero(f,-2)

%计算得零点为x=-1.66

z2=fzero(f,2)

%计算得零点为x=1.66

这是y=sinx/x的曲线图。我的情况是y的值是已知的,我需要把x的全部值出来,即想通过反函数来得。但是问题是,y=1时x是一个值,但y=0.8是两个值,y=0.1就是许多值。

这是y=sinx/x的曲线图。我的情况是y的值是已知的,我需要把x的全部值出来,即想通过反函数来得。但是 ... 在你画的区间上,函数不是单调的,所以其反函数不存在的,或者说是个多值函数。

matlab中如何就反函数

finv

F inverse cumulative distribution function

Syntax

X = finv(P,V1,V2)

Description

X = finv(P,V1,V2) computes the inverse of the F cdf with numerator degrees of freedom V1 and denominator degrees of freedom V2 for the corresponding probabilities in P. P, V1, and V2 can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other inputs.

The parameters in V1 and V2 must all be positive integers, and the values in P must lie on the interval [0 1].

The F inverse function is defined in terms of the F cdf as

where

Examples

Find a value that should exceed 95% of the samples from an F distribution with 5 degrees of freedom in the numerator and 10 degrees of freedom in the denominator.

x = finv(0.95,5,10)

x =

3.3258

You would observe values greater than 3.3258 only 5% of the time by chance.

以上就是学习如何使用MATLAB求解sinc函数的逆函数的详细内容,更多请关注php中文网其它相关文章!

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
相关标签:
来源:Excel办公网网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
豆包 AI 助手文章总结
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号