Mercurial > octave
diff scripts/optimization/optimset.m @ 21634:96518f623c91
Backed out changeset dcf8922b724b
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Apr 2016 11:06:03 -0700 |
parents | dcf8922b724b |
children | ffad2baa90f7 |
line wrap: on
line diff
--- a/scripts/optimization/optimset.m Wed Apr 20 17:53:10 2016 +0200 +++ b/scripts/optimization/optimset.m Wed Apr 20 11:06:03 2016 -0700 @@ -122,9 +122,9 @@ if (nargs == 0) if (nargout == 0) ## Display possibilities. - fputs ("\nAll possible optimization options:\n\n"); - fprintf (" %s\n", opts{:}); - fputs ("\n"); + puts ("\nAll possible optimization options:\n\n"); + printf (" %s\n", opts{:}); + puts ("\n"); else ## Return struct with all options initialized to [] retval = cell2struct (repmat ({[]}, size (opts)), opts, 2); @@ -189,3 +189,4 @@ %!error <no defaults for function> optimset ("%NOT_A_REAL_FUNCTION_NAME%") %!warning <unrecognized option: foobar> optimset ("foobar", 13); %!warning <ambiguous option: Max> optimset ("Max", 10); +