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.

 Akzeptierte Antwort

text(120, 40, letter)

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by