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')

 Réponse acceptée

per isakson
per isakson le 5 Fév 2014
Modifié(e) : per isakson le 2 Mar 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 commentaire

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')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by