필터 지우기
필터 지우기

Subplot with varying number of plots

조회 수: 17 (최근 30일)
Sidafa
Sidafa 2015년 5월 28일
댓글: Sidafa 2015년 5월 28일
Hello,
Not sure if this possible. What I want to do is the following:
fig0 = figure;
subplot(1,2,1); plot(x,y1);
subplot(1,2,2); plot(x,y2);
fig1 = figure;
subplot(2,1,1); plot(x,y3);
subplot(2,1,2); (here I want to insert fig0)
so that my fig1 has one large plot in the first row, and two plots in the second row.
Is this possible? If so, please help.
Thank you in advance.

채택된 답변

Titus Edelhofer
Titus Edelhofer 2015년 5월 28일
Hi,
no, you can't insert the figure, but you can do something that should look like what you want. You can "combine" subplots to be one larger area:
fig0 = figure;
subplot(2,2,1:2); plot(x,y3);
subplot(2,2,3); plot(x,y1);
subplot(2,2,4); plot(x,y2);
Titus
  댓글 수: 1
Sidafa
Sidafa 2015년 5월 28일
Thank you sir. This is exactly what I wanted.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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