Multiple plots in multiple figures in no specific order

3 visualizaciones (últimos 30 días)
Leon
Leon el 13 de Mayo de 2020
Respondida: Ameer Hamza el 13 de Mayo de 2020
Hello,
I am looking for way to have multiple plots in different figures but in no specific order in the program. So it could be as an example: first plot two graph in figure1 then three plots in figure 2 and then again four in figure 1, etc.
Any one have a suggestion/solution
Many thanks in advance

Respuestas (1)

Ameer Hamza
Ameer Hamza el 13 de Mayo de 2020
You can use combinations of figure() and subplot() to create multiple figure windows and axes() according to your requirement. For example
figure;
subplot(2,1,1)
plot(rand(1,10))
subplot(2,1,2)
plot(rand(1,10))
figure;
subplot(3,1,1)
plot(rand(1,10))
subplot(3,1,2)
plot(rand(1,10))
subplot(3,1,3)
plot(rand(1,10))
figure;
subplot(2,2,1)
plot(rand(1,10))
subplot(2,2,2)
plot(rand(1,10))
subplot(2,2,3)
plot(rand(1,10))
subplot(2,2,4)
plot(rand(1,10))

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by