Use Latex in Matlab legend?
问题 My matlab does not accept my latex . For example if I use legend('b^{+6}\rightarrow b^{+7}') , it does not show me the arrow, How I can solve the problem? 回答1: Try with Latex interpreter, something like legend({'$b^{+6}\rightarrow b^{+7}$'}, 'interpreter', 'latex') Tested under R2012a: 回答2: For xlabel and ylabel , simply use something like: xlabel( ' $\Delta t$ [ sec ] ','Interpreter','latex') For some reason, Matlab has more difficulty with legends; you have to set the interpreter after the