How can I extrapolate the value for the slope of the line?

조회 수: 7 (최근 30일)
birdnerd007
birdnerd007 2020년 1월 10일
편집: Matt J 2020년 1월 10일
I have a loglog plot with a line that contains 5 data points. Is there a way to extrapolate the value of the slope of the line? The slope of the line is the value I need for my equation. Thanks in advanced for your help.
  댓글 수: 3
Adam Danz
Adam Danz 2020년 1월 10일
This is linear in log scale so you can follow Matt J's advice by using polyfit and log transforms.
birdnerd007
birdnerd007 2020년 1월 10일
Thanks Adam, I realized I posted the wrong graph, but it looks nearly the same.

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

채택된 답변

Matt J
Matt J 2020년 1월 10일
편집: Matt J 2020년 1월 10일
You could do,
p=polyfit(log(x),log(y),1);
slope=p(1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Log Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by