changeset 8598:11cf7bc4a871

fix invalid block end
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 27 Jan 2009 12:40:31 +0100
parents c86718093c1b
children b4fb0a52b15e
files scripts/optimization/optimset.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/optimization/optimset.m
+++ b/scripts/optimization/optimset.m
@@ -56,7 +56,7 @@
       retval = feval (fcn, 'defaults');
     catch
       error ("no defaults for function `%s'", fcn);
-    endif
+    end_try_catch
   elseif (nargs == 2 && isstruct (varargin{1}) && isstruct (varargin{2}))
     ## Set slots in old from nonempties in new.  Should we be checking
     ## to ensure that the field names are expected?