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