# close

Version:

Closes figures.

Note

You can only use the close function in the MathScript Console.

## Syntax

close
close('all')
close(a)

## all

Determines that MathScript closes all figures.

## a

Figure number you want to close. a is a positive integer. MathScript generates an error if a is not an integer or if a is an integer that does not correspond to an existing window.

## Syntax Variants

• close closes the current figure.
• close ('all') closes all figures.
• close(a) closes figure a.
close('all')
X = 0:1:10;
plot(X)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported