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

조회 수: 15(최근 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
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개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by