MATLAB: Three figures in one figure for display

figureplotsubimagesubplot

clf
figure(1);
colormap(jet)
pcolor(Uyear)
shading interp % remove the grid lines

colorbar
figure(2);
colormap(jet)
pcolor(Vyear)
shading interp % remove the grid lines
colorbar
figure(3);
colormap(jet)
pcolor(U2/V2)
shading interp
colorbar

Best Answer

figure(1);
subplot(3,1,1)
pcolor(Uyear)
colormap(jet)
shading interp % remove the grid lines

colorbar
subplot(3,1,2)
pcolor(Vyear)
colormap(jet)
shading interp % remove the grid lines
colorbar
subplot(3,1,3)
pcolor(U2/V2)
colormap(jet)
shading interp
colorbar
Related Question