How to add string on x-axis and line starting from some point?

조회 수: 1 (최근 30일)
Giuseppe
Giuseppe 2022년 3월 10일
댓글: KSSV 2022년 3월 10일
Hi guys,
In my figure I want to highlight a value on the x-axis using string and the corrispondent numerical value ("tau_1 = 66") and then I want to draw a line parallel to the vertical axis through that point.
I would like to achieve something like in the figures below:
Can you help me?

채택된 답변

KSSV
KSSV 2022년 3월 10일
You can show up the string using text. Read about this function.
You can draw line using plot.
  댓글 수: 2
Giuseppe
Giuseppe 2022년 3월 10일
Is possible with text to add string outsides figure box as represented in my image example?
KSSV
KSSV 2022년 3월 10일
Yes it is....
plot(rand(1,10))
text(2.5,0.0,'You see I am here')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by