formula - Formula of cfit or fittype object

Syntax

formula(fun)

Description

formula(fun) returns the formula of the cfit 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

  


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