(完整 word 版)matlab 绘制 i love you
t=—2*pi:0。01:2*pi;
y=0.8*sin(t);x=0.8*cos(t);
subplot(3,4,6)
plot(x,y,'y—')
axis([—1 1 —1 1])
axis square
x=1:0.001:2;
y1=0。8;y2=0.2;x1=1。5;
y3=0。2:0。0001:0。8;
subplot(3,4,1)
plot(x,y1,'y-',x,y2,'y—’,x1,y3,'y—’)
axis([1 2 0 1])
axis square
subplot(3,4,5)
x4=1。3:0.01:2;x6=1。3;
plot(x6,y3,’y—',x4,y2,’y-’)
axis([1 2 0 1])
axis square
x5=—0.6:0.01:0.6;
y5=abs(x5)+0。2;
subplot(3,4,7)
plot(x5,y5,’y-’)
axis([-1 1 0 1])
axis square