how to plot a POINTING POINTER correctly
2 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1683606/image.bmp)
but ,when i run such a '.m' file , the output become this like
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1683611/image.bmp)
0 个评论
采纳的回答
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
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!