linear fit in plot

5 vues (au cours des 30 derniers jours)
zakary Surprenant
zakary Surprenant le 26 Nov 2020
Commenté : Adam Danz le 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!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by