Main Content

dependnames

cfitsfitfittype 对象的因变量

语法

dep = dependnames(fun)

说明

dep = dependnames(fun) 以 1×1 字符向量元胞数组 dep 的形式返回 cfitsfitfittype 对象 fun 的(单个)因变量名称。

示例

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 中推出

另请参阅

| |