Clear Filters
Clear Filters

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

3 views (last 30 days)
and am not sure why. I'm trying to add formulas to a graph as fractions using this code:

Accepted Answer

per isakson
per isakson on 5 Feb 2014
Edited: per isakson on 2 Mar 2014
This produces a result
With your example
  • Matlab seems to have trouble with "\r"?
  • "10" positions the text outside the default axes.
  1 Comment
cassie on 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')

Sign in to comment.

More Answers (0)


Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!