Main Content

indepnames

cfitsfitfittype 对象的自变量

语法

indep = indepnames(fun)

说明

indep = indepnames(fun) 返回 cfitsfitfittype 对象 fun 的自变量名称 (indep)。对于曲线,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'

版本历史记录

在 R2006b 中推出

另请参阅

| |