how to plot a POINTING POINTER correctly
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
haili huang
am 1 Mai 2024
Kommentiert: haili huang
am 1 Mai 2024
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 Kommentare
Akzeptierte Antwort
Constantino Carlos Reyes-Aldasoro
am 1 Mai 2024
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 Kommentare
Constantino Carlos Reyes-Aldasoro
am 1 Mai 2024
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!