필터 지우기
필터 지우기

how to use fit in logY ?

조회 수: 5 (최근 30일)
davit petraasya
davit petraasya 2016년 4월 15일
댓글: davit petraasya 2016년 4월 27일
Hi Does anybody knows how to use fit in log(Y). I mean I have x and y data, I am plotting it and fitting points by straight line using matlab toolbox. When I take log in Y axis my straight fit line becomes curve line. I want straight line fit not curve fit.
How I can get straight fit line in log y plot?
Any advice appreciated.

채택된 답변

Ced
Ced 2016년 4월 15일
A line which is straight in a linear plot will always be curved in a log plot...? If you want it to be straight in a log10 plot, your original fit has to be exponential 10^x.
What you can do is e.g. get a linear fit g(x) to log10(y), and then f(x) = 10.^g(x) will be your actual regression function (which is obviously exponential).
  댓글 수: 1
davit petraasya
davit petraasya 2016년 4월 27일
Thanks Ced, for your help.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by