plotting subplot with different columns in the rows

65 ビュー (過去 30 日間)
mehra
mehra 2021 年 10 月 5 日
編集済み: Voss 2021 年 10 月 5 日
Hello
What is the right command for ploting a subplot of two rows in which the first row has only 2 columns and the second row has 13 columns?
Thanks

採用された回答

Voss
Voss 2021 年 10 月 5 日
編集済み: Voss 2021 年 10 月 5 日
You can use different grid sizes in subsequent calls to subplot without affecting the placement of plots created in previous calls. For instance, to create two plots across the top half of the figure, you can use:
subplot(2,2,1);
% plot something
subplot(2,2,2);
% plot something
Then to create 13 plots across the bottom half of the figure:
subplot(2,13,14);
% plot something
subplot(2,13,15);
% plot something
subplot(2,13,16);
% etc.
subplot(2,13,26);
  1 件のコメント
mehra
mehra 2021 年 10 月 5 日
this works thanks

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

その他の回答 (1 件)

zahra hosaini
zahra hosaini 2021 年 10 月 5 日
Hi I think u need to have a 2 rows and 13 columns plot. For the first row u only use 2 of the elements like (1,5) and (1, 6) and leave the rest. For the second row u will use all of the elements. Of course this way all of your subplots will be the same size therefor your plots in the first row wont cover the hole of it

カテゴリ

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