[Tex/LaTex] I can’t use acute accents (Latex interpreter form) on Matlab

accentsMATLAB

I intend to use an acute accent on a letter, for example, "é", inside a legend of a Matlab graph which uses a LaTeX Interpreter form.

In Latex code we can write "é" using \'{e}. On Matlab the corresponding code would be \'e. The problem is that apostrophe symbol is currently used for strings declaration on Matlab code. And so, \'e will not work.

But I can't find any alternative in \'e in the literature. Do you know how to do this?

Best Answer

In Matlab you can use the following sequence to typeset the following character with an acute: \''.