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일

0 개 추천

Read about the function text.

댓글 수: 3

I have tried this but the problem is tha the "results" are not showing in the same row.
I have tried this:
str={{'A=', {num2str(A)}}
text(3,8,str)
but no use.
Could you help me?
text(3, 8, sprintf('A=%g', A))
Ivan Mich
Ivan Mich 2021년 1월 31일
Thank you !!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2021년 1월 31일

댓글:

2021년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by