two figures side by side

조회 수: 86 (최근 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 CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by