Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a new figure in MATLAB?

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.

like image 927
Jader Dias Avatar asked Jan 11 '09 18:01

Jader Dias


People also ask

How can you create a new figure?

Create a New Figure Using the figure() Function in MATLAB If you want to plot data on multiple figures, you can use the figure() function to create a new figure and plot data there. To plot multiple figures using figure() , you just need to define the number of the figure inside this function.

Which of the command creates a new figure?

The easy workaround is to just use the command "figure" before you plot. just created figures 6 and 7 with your desired plots and left your previous plots 1-5 alone.

How do I make more than one figure in MATLAB?

You can display multiple axes in a single figure by using the tiledlayout function. This function creates a tiled chart layout containing an invisible grid of tiles over the entire figure.

What is MATLAB figure command?

figure( n ) finds a figure in which the Number property is equal to n , and makes it the current figure. If no figure exists with that property value, MATLAB® creates a new figure and sets its Number property to n .


1 Answers

figure; plot(something); 

or

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

etc.

like image 143
Federico A. Ramponi Avatar answered Oct 05 '22 14:10

Federico A. Ramponi