| Curve Fitting Toolbox™ | ![]() |
get(options)
s = get(options)
value = get(options,fld)
get(options) displays all field names and values of the fit options structure options.
s = get(options) returns a copy of the fit options structure options as the structure s.
value = get(options,fld) returns the value of the field fld of the fit options structure options. fld can be a cell array of strings, in which case value is also a cell array.
options = fitoptions('fourier1');
get(options,'Method')
ans =
NonlinearLeastSquares
get(options,'MaxIter')
ans =
400
set(options,'Maxiter',1e3);
get(options,'MaxIter')
ans =
1000Field values can also be referenced and assigned using the dot notation. For example:
options.MaxIter
ans =
1000
options.MaxIter = 500;
options.MaxIter
ans =
500![]() | formula | indepnames | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |