Greek symbols (esp. µ) not italic
276 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to use the greek "mu" to be displayed non-italic. Example: ylabel('c [\mu mol/l]')
Is there any easy solution to this problem?
0 Kommentare
Antworten (4)
Kenneth
am 9 Feb. 2017
Simply copy past the mu "µ" in your text like >> ylabel('c [µmol/l]') works perfectly fine in Matlab 2016a
1 Kommentar
Sean de Wolski
am 30 Okt. 2014
Use the 'tex' interpreter instead of the latex one:
>> xlabel(['c_{O2} [',char(181),'mol/l]'],'Interpreter','tex');
Mattias Flygare
am 24 Jun. 2021
Comments that suggest using unicode mu and tex interpreter do not always offer a good solution. For many reasons, one might have to use latex interpreter, and a solution for upright mu within the latex interpreter is still needed, as the unicode mu is not supported there.
My workaround was to use the latex interpreter to set the text, but with a space instead of the mu, and then insert the mu with tex interpreter "manually" where the space is. Needless to say this solution is not ideal...
2 Kommentare
Jérôme
am 26 Jul. 2022
Could you please detail how you "insert the mu with tex interpreter "manually" where the space is" after having inserted the text with the latex interpreter?
Thanks
Mattias Flygare
am 27 Jul. 2022
I believe I used the text command together with the tex interpreter and then trial and error to find the correct x and y coordinates to place the mu in the space I previously left for it. Hope it helps!
Star Strider
am 30 Okt. 2014
See if replacing ‘\mu’ with char(181) does what you want. (This applies to US-ASCII character maps. If you have a different one, you may have to search for it.)
2 Kommentare
Star Strider
am 30 Okt. 2014
I haven’t used LaTeX in years, so I had to go searching. It seems that according to the latest documentation, in LaTeX, \mu also produces an italicised symbol.
My suggestion: Go with Tex and char(181).
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!