Coefficient names ofcfit
,sfit
, orfittype
object
coeffs = coeffnames(fun)
coeffs = coeffnames(fun)
returns the coefficient (parameter) names of thecfit
,sfit
, orfittype
objectfun
as ann
-by-1 cell array of character vectorscoeffs
, wheren = numcoeffs(fun)
.
f = fittype('a*x^2+b*exp(n*x)'); ncoeffs = numcoeffs(f) ncoeffs = 3 coeffs = coeffnames(f) coeffs = 'a' 'b' 'n'