Extrapolate best-fit line
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
This is a section of one of my plots. I am estimating the slope of the "crosses data", i.e. the star is not included in that estimation (I am just using it as a reference value). I want to show that my best fit of the crosses also passes through that star. How can I extrapolate this without having to include the star in my estimate? Thanks
![Screen Shot 2019-02-07 at 10.03.41.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/203100/Screen%20Shot%202019-02-07%20at%2010.03.41.png)
0 件のコメント
採用された回答
Torsten
2019 年 2 月 7 日
If you have the coefficients c(1) and c(2) of the fit line l(x)=c(1)+c(2)*x, just evaluate the equation at the x-coordinate of the star point and compare with the y-coordinate of the star point.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!