TeX problem -- why?

2 次查看(过去 30 天)
Igor
Igor 2011-5-5
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by