Errors for the slope and intercept

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

回答(2 个)

Walter Roberson
Walter Roberson 2018-12-3
use the two output form of polyfit and the two output form of polyval
  3 个评论
Walter Roberson
Walter Roberson 2018-12-3
okay so when you call polyval pass in log10 of the x locations and the second output will reflect that log space .

请先登录,再进行评论。


Star Strider
Star Strider 2018-12-3
Consider the File Exchange contribution polyparci (link).

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by