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일

0 개 추천

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:

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by