フィルターのクリア

Errors for the slope and intercept

6 ビュー (過去 30 日間)
Marisabel Gonzalez
Marisabel Gonzalez 2018 年 12 月 3 日
回答済み: Star Strider 2018 年 12 月 3 日
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 件のコメント
Marisabel Gonzalez
Marisabel Gonzalez 2018 年 12 月 3 日
log10 space
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).

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by