你看这样画满意不?
clear all
close all
t=0:0.001:6;
y1=0.3*sin(t);
y2=0.3*cos(t);
y3=0.3;
plot(t,y1,'g--',t,y2,'b--',t,y3,'r-')
axis([0 6 -0.4 0.4])