matlab一个figure画多个子图,和多个figure画多个图。

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(...);
1
2
3
4
5
6
7
8
9
2,多个figure画多个子图:

figure(1);         % 第一个子图
plot(...);
figure(2);         % 第二个子图
plot(...);
figure(3);
plot(...);
figure(4);
plot(...);
--------------------- 
作者:xiaotao_1 
来源:CSDN 
原文:https://blog.csdn.net/xiaotao_1/article/details/79024488 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/yimixgg/article/details/84790985