TeX problem -- why?

This is working
gtext('\Sigma')
gtext('\color {red} 5')
This is not working
gtext('\frac{1}{2}')
gtext('\sqrt(5)')
Why??

1 Commento

Igor
Igor il 5 Mag 2011
error even for {}
Warning: Unable to interpret TeX string "\sqrt{5}"

Accedi per commentare.

 Risposta accettata

Teja Muppirala
Teja Muppirala il 5 Mag 2011

0 voti

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:

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by