MATLAB ヘルプ センター
cfit または sfit オブジェクトの係数の値
cfit
sfit
coeffvals= coeffvalues(fun)
coeffvals= coeffvalues(fun) は、cfit または sfit オブジェクト fun の係数 (パラメーター) の値を 1 行 n 列のベクトル coeffvals として返します (n = numcoeffs(fun))。
coeffvals
fun
n
n = numcoeffs(fun)
例
すべて折りたたむ
census.mat ファイルのデータを読み込み、2 次多項式曲線の fittype を構築します。
census.mat
fittype
load census f = fittype('poly2');
fittype オブジェクト f の係数名と式を取得します。
f
coefficientNames = coeffnames(f)
coefficientNames = 3×1 cell {'p1'} {'p2'} {'p3'}
formula(f)
ans = 'p1*x^2 + p2*x + p3'
曲線をデータに近似させ、係数値を取得します。
c = fit(cdate,pop,f); coefficientValues = coeffvalues(c)
coefficientValues = 1×3 104 × 0.0000 -0.0024 2.1130
係数の計算を行うオブジェクト。cfit または sfit オブジェクトとして指定します。
cfit または sfit オブジェクト fun の係数の値。スカラーまたはベクトルとして返されます。
R2006a より前に導入
coeffnames | confint | predint | probvalues | cfit | sfit
coeffnames
confint
predint
probvalues
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ