当前位置:千优问>常见问答>matlab filter2()函数怎么用

matlab filter2()函数怎么用

2022-09-04 19:59:08 编辑:join 浏览量:637

matlab filter2()函数怎么用

matlab函数:fzero。

功能:查找一元连续函数的零点。

用法:

x = fzero(fun,x0) %查找fun函数在x0附近的零点。

x = fzero(fun,x0,options) %由指定的优化参数options进行最小化。也可以用optimset函数定义一些参数。

[x,fval] = fzero(...)。

[x,fval,exitflag] = fzero(...)。

[x,fval,exitflag,output] = fzero(...)。

Example 1:求sin函数在3附近的零点。

x = fzero(@sin,3)。

x = 3.1416。

Example 2:求cos函数在1和2之间的零点。

x = fzero(@cos,[1 2])。

x = 1.5708。

Example 3:求函数f(x) = x^3-2*x- 5在2附近的零点。

x = fzero(@(x)x.^3-2*x-5,2)。

x = 2.0946。

matlab filter2()函数怎么用

扩展资料:

scanf格式输入函数。

printf格式输出函数。

systemdos命令函数。

sort排序。

main主函数。

fgets文件读取字符串函数。

fputs文件写入字符串函数。

fscanf文件格式读取函数。

fprintf文件格式写入函数。

fopen打开文件函数。

getchar输入字符函数。

putchar输出字符函数。

malloc动态申请内存函数。

free释放内存函数。

abs求绝对值数学函数。

sqrt求平方根数学函数。

参考资料来源:百度百科-matlab函数

标签:matlab,filter2,函数