linear fit in plot

조회 수: 7 (최근 30일)
zakary Surprenant
zakary Surprenant 2020년 11월 26일
댓글: Adam Danz 2020년 11월 28일
I can't get to add a linear fit line,
This is my code ma and me can be ignored it is for the other plots,
and this the graph i get, i just need to have a linear fit added into it!

채택된 답변

Image Analyst
Image Analyst 2020년 11월 26일
Add this:
hold on;
plot(x, curve, 'b-', 'LineWidth', 3);
  댓글 수: 4
zakary Surprenant
zakary Surprenant 2020년 11월 26일
Yah i added a hold off at the end and it work now, Thanks for your help!
Adam Danz
Adam Danz 2020년 11월 28일

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by