Add specific numbers to a plot

조회 수: 3 (최근 30일)
Ivan Mich
Ivan Mich 2021년 1월 31일
댓글: Ivan Mich 2021년 1월 31일
I have a code that I am calculating some values. I would like to add this values to a spesific point in my plot (I mean I would like to add upper left the folowing: 'A = 5', (to a next row 'B= 10' etc). I think I should use num2str(A) function but I do not know how.
Could you help me?

채택된 답변

KSSV
KSSV 2021년 1월 31일
Read about the function text.
  댓글 수: 3
Walter Roberson
Walter Roberson 2021년 1월 31일
text(3, 8, sprintf('A=%g', A))
Ivan Mich
Ivan Mich 2021년 1월 31일
Thank you !!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by