1. 程式人生 > >MATLAB plot 最基本操作命令

MATLAB plot 最基本操作命令

figure; subplot(231)        %按照橫2豎3的方式分割畫布,畫布順序水平排列。 plot(f1,Y1); hold on               %同一座標系下畫多個圖形 plot(f5,Y5,'-.'); ylim([0,500]);       %座標範圍設定 xlabel('Frequency');ylabel('Amplitude');title('white noise amplitude = 2')   % 座標名稱,圖名稱設定 legend('white noise','white noise with pulse')             % 按照順序說明同一座標下不同線的含義

Plot中線性、顏色,點標記設定