How to display equation of the line in the figure?
41 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I need to indicate the corresponding equations of the lines within the figure. How to do this? Please look at the attached file.
0 comentarios
Respuestas (2)
GILBERT ALVIOLA
el 24 de Jul. de 2017
Editada: Walter Roberson
el 24 de Jul. de 2017
txt1 = ['y = (' num2str(m) ')x + (' num2str(a) ')'];
text(x, y, txt1);
2 comentarios
Leela Sai Krishna
el 20 de Mayo de 2019
Editada: Leela Sai Krishna
el 20 de Mayo de 2019
It works. Thanks for your response.
This text is added along the fitline. how to add this text at topleft.
Thanks in advance
Walter Roberson
el 4 de Oct. de 2013
text() the equation into place if you need to have the equation show up in the main figure axis.
Consider instead using legend()
0 comentarios
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!