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

6 ビュー (過去 30 日間)
Joe
Joe 2014 年 1 月 23 日
編集済み: Walter Roberson 2021 年 1 月 12 日
Hey all,
How do I get matlab to display the ♂ and ♀ symbols.
Thanks

回答 (2 件)

Walter Roberson
Walter Roberson 2014 年 1 月 23 日
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 件のコメント
Walter Roberson
Walter Roberson 2021 年 1 月 12 日
編集済み: Walter Roberson 2021 年 1 月 12 日
The above method of extending latex is not supported. Well, it was never supported, but it does not work anymore either.

サインインしてコメントする。


James D. M. Tolliver
James D. M. Tolliver 2021 年 1 月 12 日
use the function char(). All unique symbols are in this function under the decimal system. Female symbol =char(9792); Male symbol = char(9794).
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 1 月 12 日
Note that this will not work for latex interpreter.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by