Main Content

coeffnames

Coefficient names ofcfit,sfit, orfittypeobject

Syntax

coeffs = coeffnames(fun)

Description

coeffs = coeffnames(fun)returns the coefficient (parameter) names of thecfit,sfit, orfittypeobjectfunas ann-by-1 cell array of character vectorscoeffs, wheren = numcoeffs(fun).

Examples

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

Version History

Introduced in R2006b