Why Matlab does not show the special characters (e.g.: 'ç' or º)
조회 수: 19 (최근 30일)
이전 댓글 표시
Hello people,
My problem is, when I try to put special characters in matlab, it never shows the correct character.
e.g.: legend('Estação') is shows EstaÃSÃSo
What should I do ?
답변 (2개)
Walter Roberson
2013년 8월 8일
Your example works for me on OS-X. What OS are you using? What font are you using?
Note: There is a different issue, which is that Unicode character positions beyond 255 will not work in MATLAB.
댓글 수: 4
Daniel Shub
2013년 8월 11일
@Arthur can you change the size or type face of the font (e.g., in the legend or title)?
Daniel Shub
2013년 8월 9일
You may want to see this question. It appears that on Windows the windows-1252 character set is used while on Linux (and Mac) a different character set is used. As a work around you might be able to use the TeX/LaTeX interpreter.
legend({'Esta\c{c}\H{a}o'}, 'interpreter', 'latex')
Note that the {} around the string is needed in order to pass PV pairs (although the documentation is a little unclear about this).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!