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

浙公网安备 33010602011771号