| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Curve Fitting Toolbox |
| Contents | Index |
| Learn more about Curve Fitting Toolbox |
ncoeffs = numcoeffs(fun)
ncoeffs = numcoeffs(fun) returns the number of coefficients ncoeffs of the cfit, sfit, or fittype object fun.
f = fittype('a*x^2+b*exp(n*x)');
ncoeffs = numcoeffs(f)
ncoeffs =
3
coeffs = coeffnames(f)
coeffs =
'a'
'b'
'n'![]() | numargs | plot | ![]() |

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 |