linear fit in plot

1 visualización (últimos 30 días)
zakary Surprenant
zakary Surprenant el 26 de Nov. de 2020
Comentada: Adam Danz el 28 de Nov. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by