How would I add labels to points?

18 views (last 30 days)
Grant McNamara
Grant McNamara on 19 Apr 2019
Commented: Star Strider on 24 Oct 2025 at 16:53
How would I use max(), num2str(), and text() to label the maximum point on a graph? I am supposed to use them to add on each plot a line that says max height: (max height of the plot).

Accepted Answer

Star Strider
Star Strider on 19 Apr 2019
Use the text (link) function. You will likely also need the sprintf function.
  2 Comments
Stephanie
Stephanie 7 minutes ago
Thank you G, literally help me for my homework. All the question I have had have been answer by you.
Star Strider
Star Strider 4 minutes ago
My pleasure!
A Vote would be appreciated!

Sign in to comment.

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!