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(...);
Logo

长江两岸老火锅,共聚山城开发者!We Want You!

更多推荐