필터 지우기
필터 지우기

Nonlinear least square regression

조회 수: 2 (최근 30일)
ameen
ameen 2013년 5월 27일
i have (x , y) data
the function between x and y is y = 0.392* (1 - (x / b1) .^ b2
i want to use nonlinear least square regression to obtain the values of b1 and b2
can any one help me with the structure of the Matlab program
thanks in advance
  댓글 수: 1
Matt J
Matt J 2013년 5월 27일
편집: Matt J 2013년 5월 27일
You're missing a parenthesis ')' in your regression model. It's important for us to know where it should go.

댓글을 달려면 로그인하십시오.

답변 (1개)

the cyclist
the cyclist 2013년 5월 27일
If you have the Statistics Toolbox, then you can use the nlinfit() function.
Type
doc nlinfit
in the interface, or see this page for details: http://www.mathworks.com/help/stats/nlinfit.html
  댓글 수: 8
ameen
ameen 2013년 5월 27일
Thank you very much Matt
so the problem is with my data ??
Matt J
Matt J 2013년 5월 27일
편집: Matt J 2013년 5월 27일
Or your model. Maybe you should be fitting
y=x(1)*exp(-x(2)*t)

댓글을 달려면 로그인하십시오.

카테고리

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