User`s guide

fit
4-103
fresult = fit(xdata,ydata,'ltype','PropertyName',
PropertyValue,...)
fits the data using the options specified by PropertyName
and
PropertyValue. You can display the fit options available for the specified
library fit type with the
fitoptions function.
fresult = fit(xdata,ydata,'ltype',opts) fits the data using options
specified by the fit options object
opts. You create a fit options object with the
fitoptions function. This is an alternative syntax to specifying property
name/property value pairs.
fresult = fit(xdata,ydata,'ltype',...,'problem',values) assigns
values to problem parameters. values is a cell array with one element per
parameter. Problem parameters are problem-dependent constants that you
define as part of your model. See
fittype for more information on problem
parameters.
fresult = fit(xdata,ydata,ftype,...) fits the data to the fit type object
specified by
ftype. You create a fit type object with the fittype function.
[fresult,gof] = fit(...) returns goodness of fit statistics to the structure
gof. The gof structure includes the fields shown below.
[fresult,gof,output] = fit(...) returns the structure output, which
contains information that is associated with the fitting procedure used.
Supported fitting procedures include linear least squares, robust nonlinear
least squares, and so on. Some information applies to all fitting procedures,
while other information is relevant only for particular fitting procedures. For
Field Description
sse
Sum of squares due to error
rsquare Coefficient of determination
dfe Degrees of freedom
adjrsquare Degree-of-freedom adjusted coefficient of determination
rmse Root mean squared error (standard error)