I am trying to put a macron over an "s" in a legend string. I have tried LaTeX syntax, but it does not work. This is my code:
hLegend(3) = legend([h1, h2, h3], ... '\it{r_{123}}', ... '| \it{r_{123}} |', ... '\it{$\bar{s}$_{123}}');set(hLegend(3), 'interpreter','latex');
And this is the warning I get
Warning: Unable to interpret LaTeX string"\it{r_{123}}" Warning: Unable to interpret LaTeX string"| \it{r_{123}} |" Warning: Unable to interpret LaTeX string"\it{$\bar{s}$_{123}}"
Any idea what I could be doing wrong?
Best Answer