TeX problem -- why?

3 vues (au cours des 30 derniers jours)
Igor
Igor le 5 Mai 2011
This is working
gtext('\Sigma')
gtext('\color {red} 5')
This is not working
gtext('\frac{1}{2}')
gtext('\sqrt(5)')
Why??
  1 commentaire
Igor
Igor le 5 Mai 2011
error even for {}
Warning: Unable to interpret TeX string "\sqrt{5}"

Connectez-vous pour commenter.

Réponse acceptée

Teja Muppirala
Teja Muppirala le 5 Mai 2011
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 commentaire
Igor
Igor le 5 Mai 2011
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by