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 日

0 投票

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 件のコメント

Igor
Igor 2011 年 5 月 5 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Numeric Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by