three figures in one figure for display

5 visualizaciones (últimos 30 días)
Sophia
Sophia el 24 de Ag. de 2015
Comentada: Ishaan Chauhan el 18 de Feb. de 2021
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
  2 comentarios
Image Analyst
Image Analyst el 24 de Ag. de 2015
I don't see any question here. Are you wanting to know how to use subplot()???
Sophia
Sophia el 31 de Ag. de 2015
yes, the above program will give me three different figures in three different windows.. i want all of them to be in just one window..i hope it helps to justify my question.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Ag. de 2015
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
  2 comentarios
Sophia
Sophia el 1 de Sept. de 2015
Thanks Walter.. Yes, that's what i was looking for!
Ishaan Chauhan
Ishaan Chauhan el 18 de Feb. de 2021
Thanks Walter

Iniciar sesión para comentar.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 24 de Ag. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by