indepnames
cfit、sfit、または fittype のオブジェクトの独立変数
構文
indep = indepnames(fun)
説明
indep = indepnames(fun) は、cfit、sfit、または fittype のオブジェクト fun の独立変数名 (indep) を返します。曲線の場合、indep は文字ベクトルの 1 行 1 列の cell 配列で、曲面の場合、indep は文字ベクトルの 2 行 1 列の cell 配列です。
例
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 で導入