Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
cassie
cassie am 5 Feb. 2014
Bearbeitet: per isakson am 2 Mär. 2014
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')

Akzeptierte Antwort

per isakson
per isakson am 5 Feb. 2014
Bearbeitet: per isakson am 2 Mär. 2014
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 Kommentar
cassie
cassie am 5 Feb. 2014
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')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by