Borrar filtros
Borrar filtros

How to obtain similar size of subplots?

1 visualización (últimos 30 días)
Chathu
Chathu el 10 de Dic. de 2014
Comentada: Chathu el 18 de Dic. de 2014
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 comentario
Jan
Jan el 10 de Dic. de 2014
Please post the code which causes the problem.

Iniciar sesión para comentar.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Dic. de 2014
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 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 10 de Dic. de 2014
Maybe you need to re-size one of your two images with imresize function
Chathu
Chathu el 18 de Dic. de 2014
It worked. Thanks for the hint.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by