How to write an automatically generated text on an image in matlab?

Hello.
I have an image with a number on it. I have detected and recognised the number in the picture and I would like to write the number matlab has recognised on the image. I tried using the text() command but in vain.
I wrote it as such :
text(120, 40, '%s', letter)
But this is wrong. Can anyone please help me with the syntax if what I want to be written in the image is stored in the variable 'letter'?
Can anyone please help me?
Thank you.

 採用された回答

Walter Roberson
Walter Roberson 2017 年 2 月 18 日

0 投票

text(120, 40, letter)

1 件のコメント

Shinobu
Shinobu 2017 年 2 月 19 日
Thank you very much Walter. Thank you for your quick response.

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2017 年 2 月 18 日

コメント済み:

2017 年 2 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by