| Contents | Index |
indep = indepnames(fun)
indep = indepnames(fun) returns the independent variable name or names (indep) of the cfit, sfit, or fittype object fun. For curves indep is a 1-by-1 cell array of strings, and for surfaces indep is a 2-by-1 cell array of strings.
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'dependnames | fittype | formula
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |