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!