正在加载图片...
例在[-1,2]上画y=e+sn3x2)的图形 解先建M文件 myfun1.m: function Y=myfunl(x) Y=ep(2*x)+sin(3*x^2) Matlab liti105 再输入命令: fplot(my fun,[-1, 21) 例在[-2,2]范围内绘制函数tanh的图形 解 fplot(tanh',[2,2]) Matlab liti 106 例x、y的取值范围都在[2π,2π], 画函数tanh(x),sin(x,cos(x)的图形 解输入命令 fplot( tanh(x), sin(x), cos(x)], 2 pi*-1,1,-1, ID) Matlab iti107例 在[-1,2]上画 sin( 3 ) 2 2 y e x x = + 的 图形 解 先建M文件myfun1.m: function Y=myfun1(x) Y=exp(2*x)+sin(3*x^2) 再输入命令: fplot(‘myfun1’,[-1,2]) Matlab liti105 Matlab liti106 解 输入命令: fplot(‘[tanh(x),sin(x),cos(x)]’,2*pi*[-1, 1, –1, 1]) 例 在[-2,2]范围内绘制函数tanh的图形 解 fplot(‘tanh’,[-2,2]) Matlab liti107 例 x、y的取值范围都在[-2π,2π], 画函数tanh(x),sin(x),cos(x)的图形。
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有