subplot code in matlab

3 ビュー (過去 30 日間)
Sarah Yun
Sarah Yun 2019 年 12 月 29 日
回答済み: John D'Errico 2019 年 12 月 29 日
What is subplot code to make 3 graphs show like
X X X
where X is graph
thank you

採用された回答

John D'Errico
John D'Errico 2019 年 12 月 29 日
This should be in the help for subplot. You want to create a 1x3 array of subplots.
subplot(1,3,1)
plot(rand(5),'.')
subplot(1,3,2)
plot(rand(5),'.')
subplot(1,3,3)
plot(rand(5),'.')
Of course, you could use a loop too, but the above is the simplest form.

その他の回答 (0 件)

カテゴリ

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