Help with fitting linear equation
18 ビュー (過去 30 日間)
古いコメントを表示
I need help with my HW pls, I have a data set and I have to fit a linear equation on a given data to identify the intercept and the slope
0 件のコメント
回答 (4 件)
Thorsten
2015 年 11 月 13 日
help robustfit
the final exampel contains also a standard linear regression using "regress".
0 件のコメント
Star Strider
2015 年 11 月 13 日
And a third option:
B = [ones(size(x(:))) x(:)]\y(:);
slope = B(2)
intercept = B(1)
0 件のコメント
Image Analyst
2015 年 11 月 13 日
See my attached polyfit demo that I have posted countless times.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!