How to display equation of the line in the figure?

47 Ansichten (letzte 30 Tage)
suvadip paul
suvadip paul am 4 Okt. 2013
Kommentiert: Muhammed am 24 Dez. 2022
I need to indicate the corresponding equations of the lines within the figure. How to do this? Please look at the attached file.

Antworten (2)

GILBERT ALVIOLA
GILBERT ALVIOLA am 24 Jul. 2017
Bearbeitet: Walter Roberson am 24 Jul. 2017
txt1 = ['y = (' num2str(m) ')x + (' num2str(a) ')'];
text(x, y, txt1);
  2 Kommentare
Leela Sai Krishna
Leela Sai Krishna am 20 Mai 2019
Bearbeitet: Leela Sai Krishna am 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
Muhammed
Muhammed am 24 Dez. 2022
olmamış beğendim

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 4 Okt. 2013
text() the equation into place if you need to have the equation show up in the main figure axis.
Consider instead using legend()

Community Treasure Hunt

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

Start Hunting!

Translated by