Clear Filters
Clear Filters

Parabolic regression problem

1 view (last 30 days)
Dwyane  Wade
Dwyane Wade on 21 Aug 2011
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??

Accepted Answer

bym
bym on 21 Aug 2011
A = [ones(size(x)), x, x.^2];
abc = A\y;
  4 Comments
Dwyane  Wade
Dwyane Wade on 22 Aug 2011
what does ones and size mean then?
Jan
Jan on 22 Aug 2011
@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.

Sign in to comment.

More Answers (0)

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!