matlab 图形绘制总结

 

 >> clear

>> t = [0:pi/20:4*pi];
>> hold on;
>> axis([0 4*pi -10 10])
>> plot(t, 10*sin(t),'r+:')
>> plot(t, 5*cos(t),'b*--')
>>
>> xlabel('time t');
>> ylabel('f x');
>> title('sample draw');
>> legend('x1=10sint','x2=5*cost')
>> gtext('x1');
>> gtext('x2');
>> grid on

 

 

 

posted on 2017-07-30 16:28  aerkate  阅读(248)  评论(0)    收藏  举报

导航