This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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 character vectors, 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

|

Introduced before R2006a