How do you add labels to plots?
4 views (last 30 days)
Show older comments
Louise Liao
on 12 Apr 2018
Edited: Walter Roberson
on 12 Apr 2018
I'm wondering how to display numbers directly on a plot like shown in the attached picture? Is there a way to indicate the text I want to display at a certain location? I have a code that solves 2D truss structures and I need to label the nodes and elements.

0 Comments
Accepted Answer
Walter Roberson
on 12 Apr 2018
Edited: Walter Roberson
on 12 Apr 2018
text(x, y, 'AppropriateLabelGoesHere')
0 Comments
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!