필터 지우기
필터 지우기

Errors for the slope and intercept

조회 수: 5 (최근 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).

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by