two figures side by side

84 ビュー (過去 30 日間)
Josh
Josh 2014 年 7 月 11 日
コメント済み: ElPerroVerde 2020 年 5 月 25 日
I have a figure with two different plots on it. I have a second figure with two different plots on it. I'm trying to have the output show Figure 1 side-by-side with Figure 2. So I want adjacent figures rather than adjacent plots. I tried subplot but this did not seem to work. Thank you.
  1 件のコメント
ElPerroVerde
ElPerroVerde 2020 年 5 月 25 日
I saw an answer that did this here.
it works with different size plots. I didn't try it but hope you find it usefull.

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

採用された回答

per isakson
per isakson 2014 年 7 月 11 日
編集済み: per isakson 2014 年 7 月 11 日
  1 件のコメント
Josh
Josh 2014 年 7 月 11 日
Thank you

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

その他の回答 (1 件)

Marc Jakobi
Marc Jakobi 2014 年 7 月 11 日
could you give an example code of your attempt so far? I'm a little confused as what you want to do. So far this is what I suppose you want to do:
subplot(121)
plot(rand(100,1)); hold on
plot(rand(100,1),'r')
subplot(122)
plot(rand(100,1)); hold on
plot(rand(100,1),'r')
You can use File->Export setup to resize the figure.
  1 件のコメント
Josh
Josh 2014 年 7 月 11 日
This worked! Thank you!

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

カテゴリ

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