參考:https://blog.csdn.net/xiaotao_1/article/details/79024488
1,一個figure畫多個子圖:
figure(10) % define figure
subplot(2,2,1); % subplot(x,y,n)x表示顯示的行數,y表示列數,n表示第幾幅圖片
plot(...);
subplot(2,2,2);
plot(...);
subplot(2,2,3);
plot(...);
subplot(2,2,4);
plot(...);
2,多個figure畫多個子圖:
figure(1); % 第一個子圖
plot(...);
figure(2); % 第二個子圖
plot(...);
figure(3);
plot(...);
figure(4);
plot(...);
————————————————
版權聲明:本文為CSDN博主「xiaotao_1」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/xiaotao_1/article/details/79024488