linear fit in plot

6 Ansichten (letzte 30 Tage)
zakary Surprenant
zakary Surprenant am 26 Nov. 2020
Kommentiert: Adam Danz am 28 Nov. 2020
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!

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by