three figures in one figure for display

1 回表示 (過去 30 日間)
Sophia
Sophia 2015 年 8 月 24 日
コメント済み: Ishaan Chauhan 2021 年 2 月 18 日
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 件のコメント
Image Analyst
Image Analyst 2015 年 8 月 24 日
I don't see any question here. Are you wanting to know how to use subplot()???
Sophia
Sophia 2015 年 8 月 31 日
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.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2015 年 8 月 31 日
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 件のコメント
Sophia
Sophia 2015 年 9 月 1 日
Thanks Walter.. Yes, that's what i was looking for!
Ishaan Chauhan
Ishaan Chauhan 2021 年 2 月 18 日
Thanks Walter

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 24 日

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by