figure

Creates a new figure for plotting.

Syntax

h = figure()

h = figure(n)

Inputs

n
Type: integer
Dimension: scalar

Outputs

h
Handle of the figure.

Example

Simple figure example.

figure (2)

Comments

If called without argument, new figure will be created with next available ID. If called with a free ID, new figure will be created with the free ID assigned to it. If called with a used ID, no figure will be created but the figure with the ID will be set as current figure.