<< clim Graphics functions colorbar >>

close


Close one or more figures


Syntax


close()
close('all')
close(name)
close(ID)
close(GO)
tf = close(...)

Input argument


ID

a scalar integer value: figure ID.

GO

a scalar graphics object on an existing figure.

GO

a scalar graphics object on an existing figure.

Output argument


tf

a scalar logical: true if figure was closed.

Description


close closes the current figure.

close(ID) closes the figure specified by figure ID.

close(GO) closes the figure specified by figure graphics object.

close('all') closes all figures.

Example


f = figure(1)
close();
h = figure(3)
close(h)
f1 = figure()
f2 = figure()
close('all')

See also


gcf, figure.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< clim Graphics functions colorbar >>