Mercurial > octave-nkf
comparison scripts/optimization/optimget.m @ 8664:e07e93c04080
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 04 Feb 2009 10:56:23 -0500 |
parents | 06f5dd901f30 |
children | 954b6f69f51d |
comparison
equal
deleted
inserted
replaced
8663:4238f2600a17 | 8664:e07e93c04080 |
---|---|
36 idx = lookup (opts, parname, "i"); | 36 idx = lookup (opts, parname, "i"); |
37 | 37 |
38 if (idx > 0 && strcmpi (parname, opts{idx})) | 38 if (idx > 0 && strcmpi (parname, opts{idx})) |
39 parname = opts{idx}; | 39 parname = opts{idx}; |
40 else | 40 else |
41 warning ("unrecognized option: %s", parname) | 41 warning ("unrecognized option: %s", parname); |
42 endif | 42 endif |
43 if (isfield (options, parname)) | 43 if (isfield (options, parname)) |
44 retval = options.(parname); | 44 retval = options.(parname); |
45 elseif (nargin > 2) | 45 elseif (nargin > 2) |
46 retval = default; | 46 retval = default; |