フィルターのクリア

Parabolic regression problem

1 回表示 (過去 30 日間)
Dwyane  Wade
Dwyane Wade 2011 年 8 月 21 日
how do you find a b and c in parabolic regression? like in this expression: y= -0.20x^2 + 1.94x + 2.78, how do you get 0.20 1.94 and 2.78??

採用された回答

bym
bym 2011 年 8 月 21 日
A = [ones(size(x)), x, x.^2];
abc = A\y;
  4 件のコメント
Dwyane  Wade
Dwyane Wade 2011 年 8 月 22 日
what does ones and size mean then?
Jan
Jan 2011 年 8 月 22 日
@Francis: Please read the Getting Started chapters in the documentation for such basic questions. "help size" and "help ones" are helpful also, as for all other MATLAB commands.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by