Независимая переменная cfit, sfit, или fittype объект
indep = indepnames(fun)
indep = indepnames(fun) возвращает имя независимой переменной или имена (indep) из cfit, sfit, или fittype объект fun. Для кривых indep массив ячеек из символьных векторов 1 на 1, и для поверхностей indep 2 1 массив ячеек из символьных векторов.
f1 = fittype('a*x^2+b*exp(n*x)');
indep1 = indepnames(f1)
indep1 =
'x'
f2 = fittype('a*x^2+b*exp(n*x)','independent','n');
indep2 = indepnames(f2)
indep2 =
'n'