How can I use greek symbols in plot labels?
147 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a plot x axis of which is formed of an array like [ 20 25 30...]
But I want x-axis to appear like lambda/20 lambda/25 etc.
Could you please help me?
0 个评论
采纳的回答
Mischa Kim
2014-10-4
编辑:Mischa Kim
2014-10-4
Merve, you mean something like
lambda = 20:5:40;
y = 1./lambda;
plot(lambda,y)
xlabel('{\lambda}')
set(gca,...
'xtick',lambda,...
'xticklabel',{'l/20' 'l/25' 'l/30' 'l/35' 'l/40'},'fontname','symbol')
更多回答(2 个)
Sehrish Bibi
2021-11-21
How to write beta symbol in matlab for labeling graphs
1 个评论
Walter Roberson
2021-11-21
xlabel('$\beta$', 'interpreter', 'latex')
ylabel('\beta', 'interpreter', 'tex')
Camilo Malagon Nieto
2019-5-23
A good info of how to deal with the greek characters syntaxis can can be found at.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!