Skip to Main Content Skip to Search
Product Documentation

get - Get fit options structure property names and values

Syntax

get(options)
s = get(options)
value = get(options,fld)

Description

get(options) displays all property 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 property fld of the fit options structure options. fld can be a cell array of strings, in which case value is also a cell array.

Examples

options = fitoptions('fourier1');
get(options,'Method')
ans =
NonlinearLeastSquares
get(options,'MaxIter')
ans =
   400
set(options,'Maxiter',1e3);
get(options,'MaxIter')
ans =
        1000

Property values can also be referenced and assigned using the dot notation. For example:

options.MaxIter
ans =
        1000
options.MaxIter = 500;
options.MaxIter
ans =
   500

See Also

fitoptions | set

  


 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS