# HG changeset patch # User Rik # Date 1430352564 25200 # Node ID 3797df9219887163675da937e707536d0cfe55ce # Parent 4ff975c58584e4bd158fb23845affa2087d05c4d close.m: Silently accept null argument for Matlab compatibility. * close.m: Check isempty (arg1) and don't complain if arg1 is null. diff -r 4ff975c58584 -r 3797df921988 scripts/plot/util/close.m --- a/scripts/plot/util/close.m Mon Apr 27 09:03:31 2015 -0700 +++ b/scripts/plot/util/close.m Wed Apr 29 17:09:24 2015 -0700 @@ -71,6 +71,8 @@ figs = figs(isfigure (figs)); elseif (any (isfigure (arg1))) figs = arg1(isfigure (arg1)); + elseif (isempty (arg1)) + figs = []; # Silently accept null argument for Matlab compatibility else error ('close: first argument must be "all" or a figure handle'); endif