Products & Services Solutions Academia Support User Community Company

Learn more about Curve Fitting Toolbox   

coeffvalues - Coefficient values of cfit or sfit, object

Syntax

coeffvals = coeffvalues(fun)

Description

coeffvals = coeffvalues(fun) returns the values of the coefficients (parameters) of the cfit object fun as a 1-by-n vector coeffvals, where n = numcoeffs(fun).

Example

load census

f = fittype('poly2');
coeffnames(f)
ans = 
    'p1'
    'p2'
    'p3'
formula(f)
ans =
p1*x^2 + p2*x + p3

c = fit(cdate,pop,f);
coeffvalues(c)
ans =
  1.0e+004 *
    0.0000   -0.0024    2.1130

See Also

coeffnames,confint, predint, probvalues

  


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