How to save a string as a image in Matlab?

조회 수: 10 (최근 30일)
Balkar Singh
Balkar Singh 2020년 5월 1일
댓글: Balkar Singh 2020년 5월 5일
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
Rik
Rik 2020년 5월 5일
편집: Rik 2020년 5월 5일
What is improper about it? If you need a larger font you can use my version of the text2im function.
You need to wrap the text yourself if that is what you want.
Balkar Singh
Balkar Singh 2020년 5월 5일
ok. Thanks

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by