Exponential Linear Regression fitting model?

Hi everyone,
I'd like to have an help to resolve the following problem,
I have this relationship Y=b*exp(-a/x), I know the values of Y and x, but I need to find the values of a and b. Can I use the linear regression model (polyfit/polyval)? In case it is possible, how can I use it?
Thank you,
Matteo

 채택된 답변

Torsten
Torsten 2015년 1월 29일

0 개 추천

Take LOG on both sides:
LOG(Y)=LOG(b)-a/x.
Then fit LOG(Y) against 1/x using polyfit for a polynomial of degree 1.
Alternatively, use lsqcurvefit to fit the data to the original model (the results for a and b for both approaches will differ).
Best wishes
Torsten.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

질문:

2015년 1월 29일

답변:

2015년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by