matlab第二次作业答案.docVIP

  • 19
  • 0
  • 约1.64千字
  • 约 5页
  • 2017-09-19 发布于河南
  • 举报
1,(1) x=0:1/1000:5; y=2*x-1/2; plot(x,y,’-’); (2) t=0:pi/50:2*pi; p=sin(3*t).*sin(t); x=sin(3*t).*cos(t); plotyy(t,p,t,x); 2, a=0:pi/100:2*pi; b=5.*cos(a)+4; c=5./cos(a)-7; d=sin(a)./a; subplot(2,2,1); polar(a,b,-.); subplot(2,2,3); polar(a,c,-.); subplot(1,2,2); polar(a,d,-.); 3, [x,y]=meshgrid(-1:.1:1); surf(x,y,x.*y), figure; %绘制出z=xy的三维图形 contour(x,y,x.*y,30) %绘制出z=xy的等高线 4, ezplot(x^2+y^2-3*x*y^2); hold on ezplot(x^3-x^2=y^2-y) 5, syms x y a=

文档评论(0)

1亿VIP精品文档

相关文档