正在加载图片...
例在[-1,2]上画y=e2x+sm(3x2)的图形 解先建M文件 my fun1m: function Y=myfunl(x) Matlab lit143 Y=exp(2*x)+sin(3*x.2) 再输入命令: fplot(my fun,[-1,2] 例在[-2,2]范围内绘制函数tanh的图形 解 fplot(tanh,[2,2]) Matlab lit128 例x、y的取值范围都在丌,2兀], 画函数tanh(x),sin(x),cos(x)的图形 解输入命令: fplot(([tanh(x), sin(x), os(x)], 2*pi*1-II-1I7/Matlab liti42例 在[-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 liti43 例 x、y 的取值范围都在[2- ,2 ], 画函数 tanh(x),sin(x),cos(x)的图形 Matlab liti28 解 输入命令: fplot(‘[tanh(x),sin(x),cos(x)]’,2*pi*[-1 1 –1 1]) 例 在[-2,2]范围内绘制函数tanh的图形 解 fplot(‘tanh’,[-2,2]) Matlab liti42
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有