diff scripts/optimization/optimset.m @ 8598:11cf7bc4a871

fix invalid block end
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 27 Jan 2009 12:40:31 +0100
parents 8833c0b18eb2
children 06f5dd901f30
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?