Why am I unable to make a text object that displays the string 'default' in MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to display the text string "default" using the TEXT command as shown below:
text('String','default','Position',[0.3827 0.5117 9.16],'FontSize',80);
I get a blank axes without any text displayed.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
Setting the Text Property 'String' to 'Default' has another meaning all together. In order to display this word you will need to execute the following command. This prefixes the backslash before the string. You can also add a space before the string.
text('String','\default','Position',[0.1 0.5],'FontSize',80);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!