How would I add labels to points?

17 次查看(过去 30 天)
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).

采纳的回答

Star Strider
Star Strider 2019-4-19
Use the text (link) function. You will likely also need the sprintf function.
  2 个评论
Stephanie
Stephanie 2025-10-24
Thank you G, literally help me for my homework. All the question I have had have been answer by you.
Star Strider
Star Strider 2025-10-24
My pleasure!
A Vote would be appreciated!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by