Mercurial > octave-nkf
diff scripts/plot/close.m @ 10598:6e1674216b99
close.m: No error on "close([])".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 02 May 2010 10:20:36 -0400 |
parents | 95c3e38098bf |
children | be55736a0783 |
line wrap: on
line diff
--- a/scripts/plot/close.m Sat May 01 12:00:32 2010 -0400 +++ b/scripts/plot/close.m Sun May 02 10:20:36 2010 -0400 @@ -28,6 +28,7 @@ ## @end deftypefn ## Author: jwe +## 2010-05-02 PBig allow empty argument function retval = close (arg1, arg2) @@ -45,6 +46,8 @@ close_all_figures (false); elseif (isfigure (arg1)) figs = arg1; + elseif (isempty(arg1)) + figs = []; else error ("close: expecting argument to be \"all\" or a figure handle"); endif