How to obtain similar size of subplots?

1 回表示 (過去 30 日間)
Chathu
Chathu 2014 年 12 月 10 日
コメント済み: Chathu 2014 年 12 月 18 日
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 件のコメント
Jan
Jan 2014 年 12 月 10 日
Please post the code which causes the problem.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 10 日
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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 10 日
Maybe you need to re-size one of your two images with imresize function
Chathu
Chathu 2014 年 12 月 18 日
It worked. Thanks for the hint.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by