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

7 次查看(过去 30 天)
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.

采纳的回答

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