How to put degree symbol in x-axis
6 次查看(过去 30 天)
显示 更早的评论
Dear Experts,
Thanks for your answer in advance! When i draw a x,y plot, in x-axis values says the temperature in degrees. I want to put a degree symbol for each value in x-axis in a plot. How put this degree for each value in the x-axis. Please help me in this regard.
Thank you Raj.
0 个评论
采纳的回答
Azzi Abdelmalek
2013-4-8
xt=get(gca,'xtick');
for k=1:numel(xt);
xt1{k}=sprintf('%d°',xt(k));
end
set(gca,'xticklabel',xt1);
5 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!