How to plot 3 graphs in 1 figure?

조회 수: 11 (최근 30일)
Elia Paini
Elia Paini 2021년 5월 1일
편집: Adam Danz 2021년 5월 3일
Hi, I want to plot 3 graphs in one figure, arranging them two on the left and one on the right.
With subplot, I managed to arrange them only in this way:
Thank you!

채택된 답변

dpb
dpb 2021년 5월 1일
There's an example of 2 on top and one on bottom that should have given the clue of how to bo about it...
hAx(1)=subplot(2,2,1);
hAx(2)=subplot(2,2,3);
hAx(3)=subplot(2,2,[2 4]);
results in axes as shown
  댓글 수: 2
Adam Danz
Adam Danz 2021년 5월 2일
편집: Adam Danz 2021년 5월 3일
Or tiled layout
fig = figure();
tlo = tiledlayout(fig,2,2);
nexttile
nexttile([2,1])
nexttile
Elia Paini
Elia Paini 2021년 5월 2일
Thank you both!

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

추가 답변 (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