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

5 visualizaciones (últimos 30 días)
birdnerd007
birdnerd007 el 10 de En. de 2020
Editada: Matt J el 10 de En. de 2020
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 comentarios
Adam Danz
Adam Danz el 10 de En. de 2020
This is linear in log scale so you can follow Matt J's advice by using polyfit and log transforms.
birdnerd007
birdnerd007 el 10 de En. de 2020
Thanks Adam, I realized I posted the wrong graph, but it looks nearly the same.

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 10 de En. de 2020
Editada: Matt J el 10 de En. de 2020
You could do,
p=polyfit(log(x),log(y),1);
slope=p(1);

Más respuestas (0)

Categorías

Más información sobre Log Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by