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

but ,when i run such a '.m' file , the output become this like

댓글 수: 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에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!