MATLAB: Annotation with angled arrow

annotation;MATLABplot

Hi,
I would like to use \nwarrow in the annotation text. But these latex commands are not supported in matlab, How do I get an angled arrow to my annotation?
Thanks
-Punit

Best Answer

They are supported, but the default interpreter for annotations is tex. You'll need to set it to latex to get what you want:
annotation('textbox','String','$$X \nwarrow A$$','Interpreter','latex')
Related Question