How to obtain similar size of subplots?

I already have a figure which has 2 subplots. But by default they are in two different sizes.i want to get equal size of subplots in the figure. Any suggestions?

1 Comment

Please post the code which causes the problem.

Sign in to comment.

 Accepted Answer

t=0:0.1:10;
y1=sin(t);
y2=cos(t);
subplot(211);
plot(t,y1);
subplot(212);
plot(t,y2);
Where do you see different sizes?

3 Comments

Actually my subplots are images. By default they are in different sizes. What i want is to make both subplots to the same size. How can i do that?
Maybe you need to re-size one of your two images with imresize function
It worked. Thanks for the hint.

Sign in to comment.

More Answers (0)

Asked:

on 10 Dec 2014

Commented:

on 18 Dec 2014

Community Treasure Hunt

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

Start Hunting!