numcoeffs
cfit
、sfit
或 fittype
对象的系数的数目
语法
ncoeffs = numcoeffs(fun)
说明
ncoeffs = numcoeffs(fun)
返回 cfit
、sfit
或 fittype
对象 fun
的系数的数目 ncoeffs
。
示例
f = fittype('a*x^2+b*exp(n*x)'); ncoeffs = numcoeffs(f) ncoeffs = 3 coeffs = coeffnames(f) coeffs = 'a' 'b' 'n'
版本历史记录
在 R2006b 中推出
另请参阅
fittype
| formula
| coeffnames