用符号变量绘制函数图象.docVIP

  • 8
  • 0
  • 约2.05千字
  • 约 7页
  • 2016-08-17 发布于河南
  • 举报
用符号变量绘制函数图象

用符号变量绘制函数图象 syms t; y1=sin(t); y2=cos(t); y3=tan(t); y4=cot(t); y5=sec(t); y6=cos(t.^2+1); y7=cos(2*t-1)+sin(t-pi/6); y8=cos(t+pi/9+t.^2); y9=sin(t/9+t.^3); subplot(3,3,1);ezplot(y1); subplot(3,3,2);ezplot(y2); subplot(3,3,3);ezplot(y3); subplot(3,3,4);ezplot(y4); subplot(3,3,5);ezplot(y5); subplot(3,3,6);ezplot(y6); subplot(3,3,7);ezplot(y7); subplot(3,3,8);ezplot(y8); subplot(3,3,9);ezplot(y9); 程序中的subplot是用来实现绘制多图的函数,而ezplot则是绘图的命令函数 程序运行的图像如下 程序略作改变,加上一些方格子 syms t; y1=sin(t); y2=cos(t); y3=tan(t); y4=cot(t); y5=sec(t); y6=cos(t.^2+1); y7=cos(2*t-1)+sin(t-pi/6); y8=cos(t+pi/9+t.^

文档评论(0)

1亿VIP精品文档

相关文档