How do I make the male and female symbols in Matlab?

6 vues (au cours des 30 derniers jours)
Joe
Joe le 23 Jan 2014
Hey all,
How do I get matlab to display the ♂ and ♀ symbols.
Thanks

Réponses (2)

Walter Roberson
Walter Roberson le 23 Jan 2014
disp('♂')
If you want to display into a plot, then use text() after preparing your MATLAB according to the instructions at https://www.mathworks.com/matlabcentral/newsreader/view_thread/283068
The relevant packages and symbol names are:
wasysym \mars \venus
wasysym \male \female
marvosym \Male \Female
  1 commentaire
Walter Roberson
Walter Roberson le 12 Jan 2021
Modifié(e) : Walter Roberson le 12 Jan 2021
The above method of extending latex is not supported. Well, it was never supported, but it does not work anymore either.

Connectez-vous pour commenter.


James D. M. Tolliver
James D. M. Tolliver le 12 Jan 2021
use the function char(). All unique symbols are in this function under the decimal system. Female symbol =char(9792); Male symbol = char(9794).
  1 commentaire
Walter Roberson
Walter Roberson le 12 Jan 2021
Note that this will not work for latex interpreter.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by