This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Dependent variable of cfit, sfit, or fittype object


dep = dependnames(fun)


dep = dependnames(fun) returns the (single) dependent variable name of the cfit, sfit, or fittype object fun as a 1-by-1 cell array of character vectors dep.


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

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

Introduced in R2006b

Was this topic helpful?