필터 지우기
필터 지우기

TeX problem -- why?

조회 수: 3 (최근 30일)
Igor
Igor 2011년 5월 5일
This is working
gtext('\Sigma')
gtext('\color {red} 5')
This is not working
gtext('\frac{1}{2}')
gtext('\sqrt(5)')
Why??
  댓글 수: 1
Igor
Igor 2011년 5월 5일
error even for {}
Warning: Unable to interpret TeX string "\sqrt{5}"

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

채택된 답변

Teja Muppirala
Teja Muppirala 2011년 5월 5일
MATLAB's TeX does not support those. However, these two will work:
gtext('$\frac{1}{2}$','interpreter','latex','fontsize',50)
gtext('$\sqrt{5}$','interpreter','latex','fontsize',50)
To find out more about tex/latex support in MATLAB, look here:
  댓글 수: 1
Igor
Igor 2011년 5월 5일
Thanks

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by