two figures side by side

86 visualizaciones (últimos 30 días)
Josh
Josh el 11 de Jul. de 2014
Comentada: ElPerroVerde el 25 de Mayo de 2020
I have a figure with two different plots on it. I have a second figure with two different plots on it. I'm trying to have the output show Figure 1 side-by-side with Figure 2. So I want adjacent figures rather than adjacent plots. I tried subplot but this did not seem to work. Thank you.
  1 comentario
ElPerroVerde
ElPerroVerde el 25 de Mayo de 2020
I saw an answer that did this here.
it works with different size plots. I didn't try it but hope you find it usefull.

Iniciar sesión para comentar.

Respuesta aceptada

per isakson
per isakson el 11 de Jul. de 2014
Editada: per isakson el 11 de Jul. de 2014

Más respuestas (1)

Marc Jakobi
Marc Jakobi el 11 de Jul. de 2014
could you give an example code of your attempt so far? I'm a little confused as what you want to do. So far this is what I suppose you want to do:
subplot(121)
plot(rand(100,1)); hold on
plot(rand(100,1),'r')
subplot(122)
plot(rand(100,1)); hold on
plot(rand(100,1),'r')
You can use File->Export setup to resize the figure.
  1 comentario
Josh
Josh el 11 de Jul. de 2014
This worked! Thank you!

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by