How to write the name of the plot against the line?

1 view (last 30 days)
Hey guys!
I am trying to create line plots in MATLAB. Instead of using a legend, I want to write the name of the plot against the line itself (like we can do in Excel).
How can we do so?
Thanks!

Accepted Answer

Star Strider
Star Strider on 24 Jul 2014
Experiment with the text function. It should be able to give you the result you want.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!