数学建模Matlab实验程序

loading 分享 2026-7-18 下载文档

plot(x,y1,x,y2)

title('x from 0 to 2{\\pi}');%加图形标题 xlabel('Variable X'); ylabel('Variable Y');

text(0.8,1.5,'y1=2e^{-0.5x}'); text(2.5,1.1,'y2=cos(4{\\pi}x)'); legend('y1',' y2') t=0:pi/50:2*pi; p=sin(t).*cos(t); polar(t,p,'-*');

(5)

(6)

[x,y]=meshgrid(0:0.25:4*pi); z=sin(x+sin(y))-x/10; mesh(x,y,z);

axis([0 4*pi 0 4*pi -2.5 1]);

(7) [x,y]=meshgrid(-8:0.5:8); z=sin(sqrt(x.^2+y.^2))./sqrt(x.^2+y.^2+eps);

subplot(2,2,1); mesh(x,y,z);

(8)x = -pi:pi/100:pi;y=(sin(1./x)).*x;plot(x,y) (9) t=0:pi/100:6*pi;

x = 3*(t-sin(t)); plot(t,x) hold on

y=3*(1-cos(t)); plot(t,y);

hold off


数学建模Matlab实验程序.doc 将本文的Word文档下载到电脑
搜索更多关于: 数学建模Matlab实验程序 的文档
相关推荐
相关阅读