Display µm not correct in figure in Matlab
Ältere Kommentare anzeigen
I use Matlab 2011b
I have code for figure like this:
...
set(0,'DefaultAxesFontName', 'Times New Roman')
set(0,'DefaultAxesFontSize', 12)
plot(x1,y1,'r',x2,y2,'MarkerEdgeColor','b')
xlabel('Zsnsr [µm]') %Display not correct
ylabel('DeflV')
set(gca,'XDir','reverse')
axis([xmin xmax ymin ymax])
(end)
....

and the figure Matlab draw like this picture (red line) I don't know why and how to solve this.
Thanks!
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (2)
ly
am 22 Dez. 2014
0 Stimmen
M.SEETHA LAKSHMI
am 17 Sep. 2022
0 Stimmen
how to write m(
) in matlab kindly send me the coding for this
1 Kommentar
title('\mu', 'interpreter', 'tex')
xlabel('$\mu$', 'interpreter', 'latex')
ylabel('μ', 'interpreter', 'none')
text(0.5, 0.5, 'μ', 'interpreter', 'tex')
However you cannot use 'μ' with interpreter latex, and when you use interpreter latex you need the dollar signs.
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
