www.gusucode.com > matlab通信工程仿真源码(张德丰等编著)程序书籍 > matlab_code/matlab通信工程仿真源码(张德丰等编著)/第4章/li4_8.m

    t=linspace(0,2*pi,60);y1=sin(t);y2=cos(t);y3=y1.*y2;
h=figure(1);
stairs(t,y1);
h1=axes('pos',[0.2,0.2,0.6,0.4]);plot(t,y1)
h2=axes('pos',[0.1,0.1,0.8,0.1]);stem(t,y1)
h3=axes('pos',[0.5,0.5,0.4,0.4]);fill(t,y1,'g')
h4=axes('pos',[0.1,0.6,0.3,0.3]);plot(t,y1,'—',t,y2,':',t,y3,'o')