Parabolic regression problem

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by