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).

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by