User`s guide
fitoptions
4-110
Example Create an empty fit options object and configure the object so that data is
normalized before fitting.
opts = fitoptions;
opts.Normal = 'on'
opts =
Normalize: 'on'
Exclude: []
Weights: []
Method: 'None'
Creating an empty fit options object is particularly useful when you want to
configure only the
Normalize, Exclude, or Weights properties for a data set,
and then fit the data using the same fit options object, but with different fitting
methods. For example, fit the census data using a third-degree polynomial, a
one-term exponential, and a cubic spline.
load census
f1 = fit(cdate,pop,'poly3',opts);
f2 = fit(cdate,pop,'exp1',opts);
f3 = fit(cdate,pop,'cubicsp',opts);
MaxFunEvals
Maximum number of function (model) evaluations
allowed. The default value is 600.
MaxIter Maximum number of fit iterations allowed. The default
value is 400.
TolFun Termination tolerance on the function (model) value. The
default value is 10
-6
.
TolX Termination tolerance on coefficients. The default value is
10
-6
.
Property Description (Continued)