Back to Data Visualization
figure
Create a new figure
Syntax
figure figure(n)
Description
Starts a new figure so the next plotting command creates a fresh chart. Without arguments, creates a new figure with auto-incremented ID. With argument n, switches to figure n.
Parameters
| Name | Description |
|---|---|
| n(optional) | Figure number |
Returns
null
Examples
Try It
>> plot([1 2 3]); figure(); plot([4 5 6])