啊把结果图放上来好麻烦啊

大家自己复制粘贴看结果好了

x=0:pi/100:2*pi;

y=2*exp(-0.5*x).*sin(2*pi*x);

clearclcsubplot(1,2,1);t = 0:0.01:2*pi;x = cos(2*t).*(cos(t).^2);y = sin(2*t).*(sin(t).^2);comet(x,y)subplot(1,2,2);t = -10*pi:pi/250:10*pi;comet3((cos(2*t).^2).*sin(t),(sin(2*t).^2).*cos(t),t)

clearclcsubplot(2,2,1)contour3(peaks,50); %画出曲面在三度空间中的等高线axis([-inf inf -inf inf -inf inf]); subplot(2,2,2)contour(peaks, 50); %画出曲面等高线在XY平面的投影subplot(2,2,3)t=linspace(0,20*pi, 501); plot3(t.*sin(t), t.*cos(t), t);% 画出三度空间中的曲线subplot(2,2,4)plot3(t.*sin(t), t.*cos(t), t, t.*sin(t), t.*cos(t), -t);% 同时画出两条三度空间中的曲线

clearclcsubplot(3,3,1)ezplot('cos(x)')subplot(3,3,2)ezplot('cos(x)', [0, pi])subplot(3,3,3)ezplot('1/y-log(y)+log(-1+y)+x - 1')subplot(3,3,4)ezplot('x^2 - y^2 - 1')subplot(3,3,5)ezplot('x^2 + y^2 - 1',[-1.25,1.25]); axis equalsubplot(3,3,6)ezplot('x^3 + y^3 - 5*x*y + 1/5',[-3,3])subplot(3,3,7)ezplot('x^3 + 2*x^2 - 3*x + 5 - y^2')subplot(3,3,8)ezplot('sin(t)','cos(t)')subplot(3,3,9)ezplot('sin(3*t)*cos(t)','sin(3*t)*sin(t)',[0,pi])

•>> x=linspace(0,2*pi,100);

•>> y1=sin(x);

•>> y2=2*sin(x);

•>> y3=3*sin(x);

•>> x=[x;x;x]';

•>> y=[y1;y2;y3]';

•>>plot(x,y,x,cos(x))

•x,y都是含有三列的矩阵,它们组成输入参数对,绘制三条曲线;x和cos(x)又组成一对,绘制一条余弦曲线。

clearclc[X0,Y0,Z0]=sphere(30);       %产生单位球面的三维坐标X=2*X0;Y=2*Y0;Z=2*Z0;        %产生半径为2的球面的三维坐标clfsubplot(1,2,1);surf(X0,Y0,Z0);          %画单位球面shading interp               %采用插补明暗处理hold on,mesh(X,Y,Z),colormap(hot),hold off       %采用hot色图hidden off                    %产生透视效果axis equal,axis off          %不显示坐标轴title('透视图')subplot(1,2,2);surf(X0,Y0,Z0);          %画单位球面shading interp               %采用插补明暗处理hold on,mesh(X,Y,Z),colormap(hot),hold off       %采用hot色图hidden on                    %产生消隐效果axis equal,axis off          %不显示坐标轴title('消隐图')

•x=[02 4 6 8 10];

•y1=[0.650.645 0.64 0.586 0.626 0.615];

•y2=[8284 88 95 73 67];

•[AX,H1,H2]=plotyy(x,y1,x,y2,@plot);%获取坐标轴、图像句柄

•set(get(AX(1),'ylabel'),'string','峰值透过率','fontsize',16);

•set(get(AX(2),'ylabel'),'string','半高宽/nm','fontsize',16);

•xlabel('倾斜角度/°','fontsize',16);

•set(H1,'Linestyle','--');

•set(H2,'Linestyle',':');

•set(gcf,'color','white')

•set(gca,'linewidth',1.5)%设置边框宽度

clearclc[x,y,z] =peaks; subplot(2,3,1);meshz(x,y,z); %曲面加上围裙,即给出曲面和零平面axis([-inf inf -inf inf -inf inf]); subplot(2,3,2);waterfall(x,y,z); %在x方向产生水流效果axis([-inf inf -inf inf -inf inf]); subplot(2,3,3);meshc(x,y,z); %同时画出网状图与等高线axis([-inf inf -inf inf -inf inf]); subplot(2,3,4);surfc(x,y,z); %同时画出曲面图与等高线axis([-inf inf -inf inf -inf inf]);subplot(2,3,5)surfl(x,y,z); %给出带光照效果的彩色表面图axis([-inf inf -inf inf -inf inf]);subplot(2,3,6)contourf(x,y,z);axis([-inf inf -inf inf -inf inf]);

clearclcx=-2:0.01:2;[x,y]=meshgrid(x,x); %x和y都是401x401的矩阵r=sqrt(x.^2+x.^2)+eps;z=sinc(r);subplot(2,1,1);mesh(z);subplot(2,1,2);surf(x,y,z);