Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Labels and Latex

Subject: Labels and Latex

From: Francesco

Date: 4 Aug, 2007 01:07:44

Message: 1 of 4

Hi everybody,
could you pls tell me (if possible) how can I insert a
label like "\dot{a_{0}}" in Matlab?
If I just put in the label a_{0} it works, but the "dot"
(time derivative) does not.
Many thanks,

Francesco

Subject: Labels and Latex

From: Lorenzo

Date: 4 Aug, 2007 01:30:44

Message: 2 of 4

"Francesco " <fsarnari@maths.leeds.ac.uk> wrote in message
<f90jh0$gtl$1@fred.mathworks.com>...
> Hi everybody,
> could you pls tell me (if possible) how can I insert a
> label like "\dot{a_{0}}" in Matlab?
> If I just put in the label a_{0} it works, but the "dot"
> (time derivative) does not.
> Many thanks,
>
> Francesco
>
>
>

Set the "interpreter" property of the label to "latex" - the default is "tex", which
only accepts a subset of the LaTex commands.
hth,
Lorenzo

Subject: Labels and Latex

From: Shaun

Date: 4 Aug, 2007 03:45:59

Message: 3 of 4

>> text(0.5,0.5,'\dot{v}','interpreter','latex')
Warning: Unable to interpret TeX string. Invalid LaTeX
string.

Oops!! Don't forget the $...$

>> text(0.5,0.5,'$\dot{v}$','interpreter','latex')

Shaun

Subject: Labels and Latex

From: Naor Movshovitz

Date: 4 Aug, 2007 08:12:48

Message: 4 of 4

While we are on the subject, when i use Latex labels I get
a strange behaviour when exporting that figure to eps. The
eps file does not have a bounding box property, which makes
it harder to use in documents. Anyone know what i'm talking
about, or can suggest a solution?
Thanks,
-naor (R2006a, winxp32pro)

"Shaun " <s@s.com> wrote in message <f90spm$a92
$1@fred.mathworks.com>...
> >> text(0.5,0.5,'\dot{v}','interpreter','latex')
> Warning: Unable to interpret TeX string. Invalid LaTeX
> string.
>
> Oops!! Don't forget the $...$
>
> >> text(0.5,0.5,'$\dot{v}$','interpreter','latex')
>
> Shaun

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us