This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

category

Category of fit of cfit, sfit, or fittype object

Syntax

cname = category(fun)

Description

cname = category(fun) returns the fit category cname of the cfit, sfit, or fittype object fun, where cname is one of 'custom', 'interpolant', 'library', or 'spline'.

Examples

f1 = fittype('a*x^2+b*exp(n*x)');
category(f1)
ans =
custom

f2 = fittype('pchipinterp');
category(f2)
ans =
interpolant

f3 = fittype('fourier4');
category(f3)
ans =
library

f4 = fittype('smoothingspline');
category(f4)
ans =
spline

Introduced in R2006b