How to save a string as a image in Matlab?

9 views (last 30 days)
Balkar Singh
Balkar Singh on 1 May 2020
Commented: Balkar Singh on 5 May 2020
cover_str = 'Most teachers waste their time by asking questions that are intended to discover what a pupil does not know, whereas the true art of questioning is to discover what the pupil does know or is capable of knowing.';
image = text2im(cover_str);
imwrite(image,'image2.png');
I am trying to save a string as a image by using the above code but it is not working properly.
Thanks
  6 Comments

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!