why \pi don't work??

조회 수: 9 (최근 30일)
vincent balintongog
vincent balintongog 2021년 10월 20일
댓글: Stephen23 2021년 10월 20일
why i dont get the symbol of pi?
  댓글 수: 1
Stephen23
Stephen23 2021년 10월 20일
"why i dont get the symbol of pi?"
Why do you expect that entering a TeX command in the MATLAB command prompt should return a "symbol of pi" ?
Did MATLAB turn into a TeX compiler overnight?

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

답변 (1개)

Rik
Rik 2021년 10월 20일
Why did you expect it to? This isn't LaTeX.
If you want the pi symbol in a character vector that is possible:
char(960)
ans = 'π'
Or you can use a text object, which allows you to use LaTeX syntax:
text(0.5,0.5,'\pi')

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by