1.
(1) theta=0:pi/100:2*pi; polar(theta,3*(1-cos(theta)))
(点击看大图)
(2)t=-3:0.1:3;plot(1.25*exp(-0.25*t)+cos(3*t))
(点击看大图)
2.t=0:0.1:8;plot(1-2*exp(-t).*sin(t));xlabel('Time');ylabel('Amplitude');title('Decaying Ocsillating Exponential')
(点击看大图)
3.x=0:0.1:25;y1=2.6*exp(-0.5*x).*cos(0.6*x)+0.8;y2=1.6*cos(3*x)+sin(x);plot(x,y1,'r--',x,y2)
(点击看大图) 4.
x=-3:0.1:3;
subplot(1,2,1); y1=sin(2*x).*cos(3*x); plot(x,y1);xlabel('x'); ylabel('y'); title('y=sin2xcos3x');
subplot(1,2,2); y2=0.4*x; plot(x,y2); xlabel('x'); ylabel('y'); title('y=0.4x')
(点击看大图) 5.
ezmesh('1/((x+1)^2+(y+1)^2+1)-1/((x-1)^2+(y-1)^2+1)',[-3,3])