Main Content

Fit type for curve and surface fitting

creates the `aFittype`

= fittype(`libraryModelName`

)`fittype`

object `aFittype`

for the model specified by `libraryModelName`

.

creates a fit type for the model specified by the MATLAB`aFittype`

= fittype(`expression`

)^{®} expression.

constructs the fit type with additional options specified by one or more
`aFittype`

= fittype(`expression`

,`Name,Value`

)`Name,Value`

pair arguments.

creates a fit type for a custom linear model with terms specified by the
cell array of character vector expressions in
`aFittype`

= fittype(`linearModelTerms`

)`linearModelTerms`

.

constructs the fit type with additional options specified by one or more
`aFittype`

= fittype(`linearModelTerms`

,`Name,Value`

)`Name,Value`

pair arguments.

creates a fit type for the model specified by
`aFittype`

= fittype(`anonymousFunction`

)`anonymousFunction`

.

constructs the fit type with additional options specified by one or more
`aFittype`

= fittype(`anonymousFunction`

,`Name,Value`

)`Name,Value`

pair arguments.

If the fit type expression input is a character vector or anonymous function, then the toolbox uses a nonlinear fitting algorithm to fit the model to data.

If the fit type expression input is a cell array of terms, then the toolbox uses a linear fitting algorithm to fit the model to data.