User`s guide

fittype
4-113
4fittype
Purpose Create a fit type object
Syntax ftype = fittype('ltype')
ftype = fittype('expr')
ftype = fittype('expr','PropertyName',PropertyValue,...)
Arguments
Description
ftype = fittype('ltype') creates the fit type object ftype from the library
model, spline, or interpolant specified by
ltype. You can display the library fit
type names with the
cflibhelp function.
ftype = fittype('expr') creates the fit type object from the expression
specified by
expr. The expression expr represents the custom model you will
use to fit your data. To create a general (nonlinear) custom model, specify the
entire equation as one expression. To create a linear custom model, pass in a
cell array of expressions to
expr but do not include the coefficients. Each
element of the cell array corresponds to one term of the model. If there is a
constant term, use 1 as the corresponding element in the cell array.
By default, the independent variable is assumed to be
x, the dependent
variable is assumed to be
y, there are no problem-dependent variables, and all
other variables are assumed to be coefficients of the model. All coefficients
must be scalars.
'
ltype' The name of a library model, spline, or interpolant.
'expr' An expression representing a custom model.
'PropertyName' The name of a fit type object property.
PropertyValue A valid value for PropertyName.
ftype A fit type object.