Are some Greek characters not supported?

조회 수: 11 (최근 30일)
Paul McKenzie
Paul McKenzie 2018년 3월 19일
댓글: Walter Roberson 2018년 3월 19일
In R2017b, I tried to use \varphi in a legend and got the error message:
*Warning: Error updating Legend.
Character vector must have valid interpreter syntax:
\varphi*
If I shorten it to \phi , it displays as expected. What's going on?

답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 19일
\varphi requires interpreter latex, and requires math mode (that is, enclosed in $)
text(1,1,'$\phi \varphi$', 'interpreter', 'latex')
  댓글 수: 8
Paul McKenzie
Paul McKenzie 2018년 3월 19일
That URL seems to suggest that it's a TeX 'limitation' and not something that Mathworks can (easily) fix.
Walter Roberson
Walter Roberson 2018년 3월 19일
If you look at the comprehensive list of LaTeX symbols http://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf, you will find that \alpha and so on are table 184, well inside Section 3 describing Mathematics Mode

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by