Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Fit type for curve and surface fitting

`aFittype = fittype(libraryModelName)`

`aFittype = fittype(expression)`

`aFittype = fittype(expression,Name,Value)`

`aFittype = fittype(linearModelTerms)`

`aFittype = fittype(linearModelTerms,Name,Value)`

`aFittype = fittype(anonymousFunction)`

`aFittype = fittype(anonymousFunction,Name,Value)`

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.

Was this topic helpful?