
xlabel with non italic mu in latex
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tim Krzyzanowski
el 16 de Nov. de 2018
Comentada: Rick
el 27 de Feb. de 2020
Hello i want to label my x-axis with Latexcode.
I want it in this format
t / µs
as you can see i need to have the t in italic and the µs in non italic. I used to try this code:
xlabel(['$\it t/ \mathrm{\mu s}$'],'interpreter','latex')
but the Latex interpreter is printing the \mu always in italic is there any posibility to solve this?
0 comentarios
Respuesta aceptada
Adam Danz
el 16 de Nov. de 2018
Editada: Adam Danz
el 16 de Nov. de 2018
You can enter the µ character directly; no need for latex.
xlabel('{\itt} / µs', 'interpreter', 'tex')

3 comentarios
Adam Danz
el 27 de Feb. de 2020
Try this.
>> [char(956), ' = 68']
ans =
'μ = 68'
>> [char(963), ' = 4']
ans =
'σ = 4'
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!