How to plot 2 figures with 2 subplots each ?
Mostrar comentarios más antiguos
I need to plot 4 graphs and I need 2 of them in one figure and the other 2 graphs in the other figure.
Thanks for your help.
3 comentarios
Sam Chak
el 1 de Jun. de 2022
Can you sketch out the figures so that we can have a good idea of what you want?
Semih Altun
el 1 de Jun. de 2022
Jan
el 1 de Jun. de 2022
@Semih Altun: Did you read my answer? Exactly as shown there: Store the handles of the figures and provide the wnated handle as 1st input of the subplot command. This specifies the parent object the axes appears in.
Respuestas (1)
Jan
el 1 de Jun. de 2022
Fig1H = figure;
Ax1H = subplot(Fig1H, 1, 2, 1);
plot(Ax1H, rand(10));
Ax2H = subplot(Fig1H, 1, 2, 1);
plot(Ax2H, rand(10));
Fig2H = figure;
Ax3H = subplot(Fig2H, 1, 2, 1);
plot(Ax3H, rand(10));
Ax4H = subplot(Fig2H, 1, 2, 1);
plot(Ax4H, rand(10));
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!