How can I find the coeficients alpha, beta of the simple linear regression, using polyfit function?
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Torsten
2022 年 12 月 10 日
x = (0:0.1:1).';
y = 3*x + 4 + 0.01*randn(numel(x),1);
polyfit(x,y,1)
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!