How to create a new figure in MATLAB?

Jader Dias picture Jader Dias · Jan 11, 2009 · Viewed 243.9k times · Source

Usually when I plot in MATLAB, it always draws on the same figure. How do I make it draw in a new figure?

I know it is pretty elementary, but I'm not finding it using Google Search.

Answer

Federico A. Ramponi picture Federico A. Ramponi · Jan 11, 2009
figure;
plot(something);

or

figure(2);
plot(something);
...
figure(3);
plot(something else);
...

etc.