Subplotting by using MATLAB GUI

4 vues (au cours des 30 derniers jours)
Berat Kaya
Berat Kaya le 24 Mai 2015
Commenté : Star Strider le 24 Mai 2015
Hi everyone,
I want to use plot and subplot functions just like in command window. I mean, i want to see my subplot output as a new figure not in GUI screen.
Thanks to everybody, have a nice day.

Réponse acceptée

Star Strider
Star Strider le 24 Mai 2015
I don’t have your code, but if you want a plot in a new figure window, precede the plot call with a figure call:
figure(1)
subplot(2,1,1)
plot( ...)
subplot(2,1,2)
plot
The numbers in the figure call are not absolutely necessary, but since MATLAB will put all subsequent plots in the existing figure window if you do not create a new figure window each time, it helps to keep track of them.

Plus de réponses (1)

Berat Kaya
Berat Kaya le 24 Mai 2015
Modifié(e) : Berat Kaya le 24 Mai 2015
Thanks, i will try.
Edit: Thanks, it worked :)
  1 commentaire
Star Strider
Star Strider le 24 Mai 2015
My pleasure!

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by