Products & Services Solutions Academia Support User Community Company

Learn more about Curve Fitting Toolbox   

dependnames - Dependent variable of cfit, sfit, or fittype object

Syntax

dep = dependnames(fun)

Description

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 strings dep.

Example

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'

See Also

indepnames, fittype, formula

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS