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

조회 수: 3 (최근 30일)
cassie
cassie 2014년 2월 5일
편집: per isakson 2014년 3월 2일
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일
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개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by