How do you add labels to plots?

4 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 12 Apr 2018
Edited: Walter Roberson on 12 Apr 2018
text(x, y, 'AppropriateLabelGoesHere')

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!