Errors for the slope and intercept

7 visualizzazioni (ultimi 30 giorni)
Marisabel Gonzalez
Marisabel Gonzalez il 3 Dic 2018
Risposto: Star Strider il 3 Dic 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);

Risposte (2)

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

Accedi per commentare.


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

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by