Effacer les filtres
Effacer les filtres

I want to use unicode transportation symbols on plots.

3 vues (au cours des 30 derniers jours)
Jay Pulli
Jay Pulli le 23 Fév 2016
Commenté : Jay Pulli le 23 Fév 2016
For example, the rocket symbol U+1F680 in a text command. Can someone point me to the correct code syntax?

Réponse acceptée

Mike Garrity
Mike Garrity le 23 Fév 2016
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.
  1 commentaire
Jay Pulli
Jay Pulli le 23 Fév 2016
Thanks Mike, I think I got it, will try other symbols.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by