how to plot a POINTING POINTER correctly

3 ビュー (過去 30 日間)
haili huang
haili huang 2024 年 5 月 1 日
コメント済み: haili huang 2024 年 5 月 1 日
i'd like to add a '►' in annotation like tihs:
figure(1) ; an = annotation('textbox',[0.5,0.5,0.05,0.05],'String',' ►','FitBoxToText','on');
and if such command is typed in command window, it works well like tihs
but ,when i run such a '.m' file , the output become this like

採用された回答

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2024 年 5 月 1 日
I ran in my computer and it worked well, I guess it must be something related with the interpreter (Tex,Latex,...) and how the actual symbol is displayed. You may try using latex symbols, it is not quite the same but it would work everywhere:
txt = '$$ \rangle $$';
figure
an = annotation('textbox',[0.5,0.5,0.05,0.05],'String',txt,'FitBoxToText','on','Interpreter','latex');
  3 件のコメント
Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2024 年 5 月 1 日
yes, it is not quite the same. The best latex symbol would be \blacktriangleright but that was not working when I tried it in my computer.
haili huang
haili huang 2024 年 5 月 1 日
yes, and \triangleright works correctly , print a right triangle not filled
but it seems \blacktriangleright do not exist

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by