How to display equation of the line in the figure?
42 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I need to indicate the corresponding equations of the lines within the figure. How to do this? Please look at the attached file.
0 commentaires
Réponses (2)
GILBERT ALVIOLA
le 24 Juil 2017
Modifié(e) : Walter Roberson
le 24 Juil 2017
txt1 = ['y = (' num2str(m) ')x + (' num2str(a) ')'];
text(x, y, txt1);
2 commentaires
Leela Sai Krishna
le 20 Mai 2019
Modifié(e) : Leela Sai Krishna
le 20 Mai 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
le 4 Oct 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 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!