Main Content

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에 개발됨

참고 항목

| |