Количество коэффициентов cfit, sfit, или fittype объект
ncoeffs = numcoeffs(fun)
ncoeffs = numcoeffs(fun) возвращает количество коэффициентов ncoeffs из cfit, sfit, или fittype объект fun.
f = fittype('a*x^2+b*exp(n*x)');
ncoeffs = numcoeffs(f)
ncoeffs =
3
coeffs = coeffnames(f)
coeffs =
'a'
'b'
'n'fittype | formula | coeffnames