Products & Services Solutions Academia Support User Community Company

Learn more about Curve Fitting Toolbox   

formula - Formula of cfit, sfit, or fittype object

Syntax

formula(fun)

Description

formula(fun) returns the formula of the cfit, sfit, or fittype object fun as a character array.

Example

f = fittype('weibull');
formula(f)
ans =
a*b*x^(b-1)*exp(-a*x^b)

g = fittype('cubicspline');
formula(g)
ans =
piecewise polynomial

See Also

fittype, coeffnames, numcoeffs, probnames, coeffvalues

  


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