Errors for the slope and intercept

7 visualizaciones (últimos 30 días)
Marisabel Gonzalez
Marisabel Gonzalez el 3 de Dic. de 2018
Respondida: Star Strider el 3 de Dic. de 2018
How can I get the uncertainty for the slope and intercept when using this code
Const = polyfit(log10(x),log10(y), 1);
m = Const(1);
k = Const(2);
b_fit = (10^k) * (x.^m4);

Respuestas (2)

Walter Roberson
Walter Roberson el 3 de Dic. de 2018
use the two output form of polyfit and the two output form of polyval
  3 comentarios
Marisabel Gonzalez
Marisabel Gonzalez el 3 de Dic. de 2018
log10 space
Walter Roberson
Walter Roberson el 3 de Dic. de 2018
okay so when you call polyval pass in log10 of the x locations and the second output will reflect that log space .

Iniciar sesión para comentar.


Star Strider
Star Strider el 3 de Dic. de 2018
Consider the File Exchange contribution polyparci (link).

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by