TeX problem -- why?

4 Ansichten (letzte 30 Tage)
Igor
Igor am 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 Kommentar
Igor
Igor am 5 Mai 2011
error even for {}
Warning: Unable to interpret TeX string "\sqrt{5}"

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Teja Muppirala
Teja Muppirala am 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:

Weitere Antworten (0)

Kategorien

Mehr zu Physical Units finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by