Products & Services Solutions Academia Support User Community Company

Learn more about Curve Fitting Toolbox   

coeffnames - Coefficient names of cfit, sfit, or fittype object

Syntax

coeffs = coeffnames(fun)

Description

coeffs = coeffnames(fun) returns the coefficient (parameter) names of the cfit, sfit, or fittype object fun as an n-by-1 cell array of strings coeffs, where n = numcoeffs(fun).

Example

f = fittype('a*x^2+b*exp(n*x)');
ncoeffs = numcoeffs(f)
ncoeffs =
     3
coeffs = coeffnames(f)
coeffs = 
    'a'
    'b'
    'n'

See Also

fittype, formula, 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