I have created a plot in Matlab and now I would like to add a legend with the following command:
legend({'Pos1', 'Pos2', 'Pos3', '\alpha Pos4'}, 'Location', 'northeast', 'Interpreter', 'latex', 'fontsize', 22);
legend('boxoff')
The problem is that \alpha
is not transformed into the greek letter. If I ommit the curly brackets {} then it works but I need them because I only want to label the first four lines.
How can I get the greek letter alpha?
You forgot the $
legend({'Pos1', 'Pos2', 'Pos3', '$\alpha$ Pos4'}, 'Location', 'northeast', 'Interpreter', 'latex', 'fontsize', 22);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With