subplot with 1 large and 2 small figures

Is it possible to create a subplot like this? I.e.,
% | 1 |
% |________|
% | 2 | 3 |
% | | |

 採用された回答

Star Strider
Star Strider 2023 年 6 月 15 日

2 投票

Perhaps something like this —
x = 0:0.01:6.2;
figure
subplot(2,2,[1 2])
plot(x, sin(2*pi*4*x))
subplot(2,2,3)
plot(x, cos(2*pi*6*x))
subplot(2,2,4)
plot(x, sin(2*pi*x).*cos(2*pi*x*2))
.

その他の回答 (1 件)

Les Beckham
Les Beckham 2023 年 6 月 15 日
編集済み: Les Beckham 2023 年 6 月 15 日

2 投票

Yes it is. Here is an example. See the documentation for tiledlayout.
tiledlayout(2, 2)
nexttile([1 2]) % first plot spans two tiles
plot(rand(1,10))
grid on
nexttile
plot(10*rand(1,10))
grid on
nexttile
plot(100*rand(1,10))
grid on

製品

リリース

R2023a

質問済み:

2023 年 6 月 15 日

編集済み:

2023 年 6 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by