# Matlab plot Latex style

I would like to have the units on the axis from a Matlab plot with the correct form like SIunitx in LATEX. Is this possible?

This is the line that I would like to have different: no u, but μ.

xlabel('C [uF]', 'fontsize', 20,'Interpreter','latex')

• Well seems like you cannot add additional LaTeX packages in Matlab (se.mathworks.com/matlabcentral/answers/…). Exactly how should it be different? I.e., what does it look like now, and how do you want it to look? Aug 24 '19 at 19:36
• I would like to have micro sign instead of u for example. Aug 25 '19 at 8:15
• Hard to guess when there was no mu in your example. But Matlab understands some TeX syntax (see the dokumentation), so I think you can just write \mu to get that. Aug 25 '19 at 8:25

Short answer: Just write \mu in your xlabel. Matlab can understand some TeX syntax, see https://se.mathworks.com/help/matlab/ref/text.html#f68-481090_sep_shared-Interpreter (though this does not mean it actually uses TeX).
Addition: as you will see from the Matlab documentation, you can make Matlab use LaTeX to typeset text, with the 'Interpreter', 'LaTeX' option. I've never really used this feature much, and don't really know any details about it. It appears that in earlier versions of Matlab it was possible to add packages to the preamble used, but that changed around 2016 (https://se.mathworks.com/matlabcentral/answers/368641-add-more-latex-packages-for-latex-interpreter-in-matlab#comment_507908). Hence it's not possible to use e.g. siunitx in Matlab.