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.

 Accepted Answer

More Answers (0)

Asked:

on 18 Feb 2017

Commented:

on 19 Feb 2017

Community Treasure Hunt

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

Start Hunting!