Getting error code "unable to interpret LaTeX string..."

and am not sure why. I'm trying to add formulas to a graph as fractions using this code:
text(10,.2,'Ea=$\displaystyle\frac{-1.436}{\r}$','interpreter','LaTeX')

 採用された回答

per isakson
per isakson 2014 年 2 月 5 日
編集済み: per isakson 2014 年 3 月 2 日

1 投票

This produces a result
text(.2,.2,'Ea=$\displaystyle\frac{-1.436}{17}$','interpreter','LaTeX')
With your example
  • Matlab seems to have trouble with "\r"?
  • "10" positions the text outside the default axes.

1 件のコメント

cassie
cassie 2014 年 2 月 5 日
You were right on both counts. One: I had my x and y flipped. duh. the other i took out the backslash (don't know why) but this works: text(.3,-10,'Ea=$\displaystyle\frac{-1.436}{r}$','interpreter','LaTeX')

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraph and Network Algorithms についてさらに検索

質問済み:

2014 年 2 月 5 日

編集済み:

2014 年 3 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by