subplot() to alling different sized graphs on the same figure

조회 수: 1 (최근 30일)
Bogdan  Neagu
Bogdan Neagu 2020년 2월 16일
편집: Bogdan Neagu 2020년 2월 16일
Ive found out the commands tiledlayout() and nexttile([ ]) might work for my needs after googling for a while.
This is for a class assignement and supposedely I am allowed to use only the subplot() command to make it work or by interactively moving my mouse and resizing the graphs.
Any guesses of how to make it work only with subplot() ? As far as I know you can't specify arguments like "vertical" or similar.
Thanks in advance

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 16일
subplot(2,2,1)
plot f
subplot(2,2,3)
plot g
subplot(2,2,[2 4])
plot f and g together
The ordering is across, unlike linear indexing:
plot1 plot2
plot3 plot4

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by