figure(3)
set(gcf,'color',[1 1 1])
set(gcf,'position',[150 10 600 800])
subplot(221)
plot(t1,V_b1(id*3-2,:),'color','r')
axis tight
h=legend('Case1');
set(h,'box','off','fontsize',6,'location','best')
xlabel('Time/s','fontsize',10)
ylabel('X-Velocity/m/s','fontsize',10)
set(gca,'position',[0.08 0.55 0.4 0.43])
subplot(222)
plot(t2,V_b2(id*3-2,:),'color','g')
axis tight
h=legend('Case2');
set(h,'box','off','fontsize',6,'location','best')
xlabel('Time/s','fontsize',10)
ylabel('X-Velocity/m/s','fontsize',10)
set(gca,'position',[0.58 0.55 0.4 0.43])
subplot(223)
plot(t3,V_b3(id*3-2,:),'color','b')
axis tight
h=legend('Case3');
set(h,'box','off','fontsize',6,'location','best')
xlabel('Time/s','fontsize',10)
ylabel('X-Velocity/m/s','fontsize',10)
set(gca,'position',[0.08 0.06 0.4 0.43])
subplot(224)
plot(t4,V_b4(id*3-2,:),'color','k')
axis tight
h=legend('Case4');
set(h,'box','off','fontsize',6,'location','best')
xlabel('Time/s','fontsize',10)
ylabel('X-Velocity/m/s','fontsize',10)
set(gca,'position',[0.58 0.06 0.4 0.43])
其中set(gca,‘position’,[0.58 0.06 0.4 0.43 ])
四个数分别代表距y轴的距离、距x轴的距离、图宽、图长