Display checkmark string in figure
16 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to use the text() function to display a checkmark in a figure. I can't seem to figure it out. I've basically tried:
text(x,y,'✓')
It doesn't display anything using this command. Help!
0 件のコメント
採用された回答
José-Luis
2013 年 1 月 14 日
First set your system to display UTF-8 encoded characters:
feature('DefaultCharacterSet','UTF-8');
Then plot it (look for UTF-8 characters for other types of check marks):
uicontrol('Style','text', 'String',char(hex2dec('2713')), ...
'Units','normalized', 'Position',[0 0 1 1], ...
'FontSize',30)
I don't know if it is possible to do with text()
その他の回答 (1 件)
Thorsten
2013 年 1 月 14 日
try a different text
text(x, y, 'ok')
and make sure that x and y are within the bounds of your figure
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!