Using AMS in figure anotation with LaTeX interpreter
Show older comments
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
Accepted Answer
More Answers (1)
Michael
on 20 Jul 2012
0 votes
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!