Products & Services Solutions Academia Support User Community Company

Learn more about Curve Fitting Toolbox   

cflibhelp - Information on library models

Syntax

cflibhelp
cflibhelp libtype
help cflibhelp

Description

Enter cflibhelp to display the names, equations, and descriptions of all models in the Curve Fitting Library. The Curve Fitting Library is a library of models for data fitting with the fit function. You use library names as input arguments in the fit, fitoptions, and fittype functions. To find out what input arguments you can use, enter:

cflibhelp libtype

Where libtype is a library type listed in the tables below.

cflibhelp libtype displays the names, equations, and descriptions for the library models of the specified type, libtype.

Enter help cflibhelp to display only the list of library types.

For Curves:

libtype

Description

distribution

Distribution models such as Weibull

exponential

Exponential function and sum of two exponential functions

fourier

Up to eight terms of Fourier series

gaussian

Sum of up to eight Gaussian models

power

Power function and sum of two power functions

rational

Rational equation models, up to 5th degree/5th degree(i.e., up to degree 5 in both the numerator and the denominator)

sin

Sum of up to eight sin functions

spline

Cubic spline and smoothing spline models

interpolant

Interpolating models, including linear, nearest neighbor, cubic spline, and shape-preserving cubic spline

polynomial

Polynomial models, up to degree nine

For Surfaces:

libtype

Description

interpolant

Interpolating models, including linear, nearest neighbor, cubic spline, and biharmonic interpolation

polynomial

Polynomial models, up to degree five

lowess

Lowess smoothing models

For more information on library models, refer to the Library Models section of the User's Guide.

Example

To list only the model equations for a libtype group, type cflibhelp followed by the group name, for example:

cflibhelp polynomial

POLYNOMIAL MODELS

        MODELNAME             EQUATION

    Curves:
          poly1                Y = p1*x+p2
          poly2                Y = p1*x^2+p2*x+p3
          poly3                Y = p1*x^3+p2*x^2+...+p4
          ...
          poly9                Y = p1*x^9+p2*x^8+...+p10
    Surfaces:

     Model names for polynomial surfaces are 'polyij', 
	     where i is the degree in x and j is the degree in y.
     The maximum for both i and j is five. The degree of
     the polynomial is the maximum of i and j. The degree
     of x in each term will be less than or equal to i,
     and the degree of y in each term will be less than or
     equal to j. For example:

          poly21  Z = p00 + p10*x + p01*y + p20*x^2 + p11*x*y
          poly13  Z = p00 + p10*x + p01*y + p11*x*y + p02*y^2 
                      + p12*x*y^2 + p03*y^3
          poly55  Z = p00 + p10*x + p01*y +...+ p14*x*y^4 
                      + p05*y^5

See Also

fit, fittype

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS