How to save a string as a image in Matlab?

1 回表示 (過去 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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by