figure
Creates a new figure for plotting and uicontrols.
Syntax
h = figure()
h = figure(n)
Inputs
- n
 - Type: integer
 
Outputs
- h
 - Handle of the figure.
 
Example
figure (2)Comments
If called without an argument, a new figure is created with the next available ID. If called with a free ID, a new figure is created with the free ID assigned to it. If called with a used ID, no figure is created but the figure with the ID is set as the current figure.