I want to use unicode transportation symbols on plots.
5 次查看(过去 30 天)
显示 更早的评论
For example, the rocket symbol U+1F680 in a text command. Can someone point me to the correct code syntax?
0 个评论
采纳的回答
Mike Garrity
2016-2-23
The syntax is pretty simple. You'll want to use the UTF-16 form, which looks like this:
text(.5,.5,['Rocket = ', hex2dec('d83d') hex2dec('de80')])
The problem is going to be finding a font that includes it. Very few fonts contain characters like this. The only one I found on my machine was one named 'Segoe UI Symbol'. All of the others displayed "tofu" for this character.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!