Add specific numbers to a plot

4 ビュー (過去 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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by