Subplot with 2 stacked plots but bottom is split in 3 vertically

6 ビュー (過去 30 日間)
HC98
HC98 2024 年 1 月 12 日
回答済み: Sam Chak 2024 年 1 月 12 日
So Something like this
So Something like this
clearvars
x = -10:0.01:10;
y = cos(x);
figure(1)
subplot(2,2,[1 2])
plot(x, y)
subplot(2,2,3)
plot(x, y)
subplot(2,2,4)
plot(x, y)
Except the bottom two pannels are split into 3 seperate plots, vertically like 3 blocks side by side

回答 (1 件)

Sam Chak
Sam Chak 2024 年 1 月 12 日
@HC98, Do you mean to plot them side-by-side horizontally?
clearvars
x = -10:0.01:10;
y = cos(x);
figure(1)
subplot(2, 3, [1 2 3])
plot(x, y)
subplot(2, 3, 4)
plot(x, y)
subplot(2, 3, 5)
plot(x, y)
subplot(2, 3, 6)
plot(x, y)

カテゴリ

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

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by