TeX problem -- why?

5 visualizaciones (últimos 30 días)
Igor
Igor el 5 de Mayo de 2011
This is working
gtext('\Sigma')
gtext('\color {red} 5')
This is not working
gtext('\frac{1}{2}')
gtext('\sqrt(5)')
Why??
  1 comentario
Igor
Igor el 5 de Mayo de 2011
error even for {}
Warning: Unable to interpret TeX string "\sqrt{5}"

Iniciar sesión para comentar.

Respuesta aceptada

Teja Muppirala
Teja Muppirala el 5 de Mayo de 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 comentario
Igor
Igor el 5 de Mayo de 2011
Thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Physical Units en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by