필터 지우기
필터 지우기

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 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