MATLAB Answers

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

2 views (last 30 days)
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

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 16 Feb 2020
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 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products


Release

R2019b