plot - MATLAB - How to merge figure sections vertically -
i want display 3 figures in figure window.
assuming divide 2x2 regions.
subplot(2,2,1) ---------+----------- | r1 | r2 | ---------+----------- | r3 | r4 | ---------+-----------
i want show figure merging r1 , r3 ant other 2 in r2 , r4
i can display them merging r1-r2 or merging r3-r4
subplot(2,2,1:2) subplot(2,2,3:4)
but, cannot merge them vertically.
this quite simple; feed subplot
locations vector.
for instance,
x = -2*pi:0.01:2*pi; subplot(2,2,[1,3]) plot(x,sin(x)) subplot(2,2,2) plot(x,cos(x)) subplot(2,2,4) plot(x,x.^2)
gives:
Comments
Post a Comment