How would I add labels to points?

조회 수: 18 (최근 30일)
Grant McNamara
Grant McNamara 2019년 4월 19일
댓글: Star Strider 2025년 10월 24일 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).

채택된 답변

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일 16:50
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일 16:53
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