I've been searching for some time to simplify a figure legend and for this I need to make Matlab interpret LaTeX AMS formulas.
In LaTeX, the commands "\textcolor{red}{$ \blacksquare$}" or $\triangledown$ are displayed but Matlax don't understand them, even when the interpreter is set to latex.
An example code is : figure annotation('textbox',[0.2 0.2 0.4 0.4],… 'Interpreter','latex',… 'String',{'Case 1: \textcolor{blue}{$\blacksquare$} meas 1',' \textcolo{red}{$\blacklozenge$} meas 2','Case 2: $\square$ meas 1',' $\triangledown$ meas 2'});
The \textcolor can probably be replaced by setting by hand the colour but the AMS commands ($\blacksquare$) aren't understood by Matlab anyway.
Which command should I be using so that Matlab interpret AMS formulas?
Thank you,
Michael
Best Answer