创建新的绘图窗口:

figure 2;
plot(...);
figure 3;
plot(...);

在同一窗口中绘制多幅图:

subplot(2,2,1);
plot(...);
subplot(2,2,2);
plot(...);
subplot(2,2,3);
plot(...);
subplot(2,2,4);
plot(...);

同一坐标内绘制多条曲线并标注:

hold on;
plot(...);
plot(...);
plot(...);
hold off;
legend('aaa', 'bbb', 'ccc');

改变坐标轴间隔:

set(gca,'XTick',0:20:100);
set(gca,'YTick',0:200:1000);

标注坐标轴和标题:

xlabel 'xxx';
ylabel 'yyy';
title 'ttt';

显示曲线的部分并可移动:

% 假设曲线的 x 坐标范围 0~100
axis([0,10]); % 仅显示 0~10的部分
pan xon;% 可以左右移动曲线

显示网格:

grid on;