get - Get fit options structure field names and values
Syntax
get(options)
s = get(options)
value = get(options,fld)
Description
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.
Example
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 =
500See Also
fitoptions, set
 | formula | | indepnames |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit