Main Content

dependnames

cfit, sfit 또는 fittype 객체의 종속 변수

구문

dep = dependnames(fun)

설명

dep = dependnames(fun)cfit, sfit 또는 fittype 객체 fun의 (단일) 종속 변수 이름을 문자형 벡터로 구성된 1×1 셀형 배열 dep로 반환합니다.

예제

f1 = fittype('a*x^2+b*exp(n*x)');
dep1 = dependnames(f1)
dep1 = 
    'y'

f2 = fittype('a*x^2+b*exp(n*x)','dependent','power');
dep2 = dependnames(f2)
dep2 = 
    'power'

버전 내역

R2006b에 개발됨

참고 항목

| |