Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > C > close (Matlab function)

close (Matlab function)

Delete specified figure

Matlab/Scilab equivalent

Matlab Scilab
close - xdel - delete

Particular cases

close

If current figure is a uicontrol one, Scilab and Matlab close are equivalent. But if current figure is a graphic window, Scilab equivalent for Matlab close is delete(gcf()).

close(h)

If h is a uicontrol figure, Scilab and Matlab close(h) are equivalent. But if h is a graphic window, Scilab equivalent for Matlab close(h) is delete(h).

close('all')

Scilab equivalent for Matlab close('all') is xdel(winsid()).

close(name)

There is no Scilab equivalent for Matlab close(name) however, mtlb_close can be an equivalent.

close('all','hidden')

Scilab equivalent for Matlab close('all','hidden') is xdel(winsid()) but Scilab kills all figures even if they are hidden.

Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:54 CEST 2016