Text instead of values in tick

1 次查看(过去 30 天)
How can I have text for example: a,b,c,d instead of 1,2,3,4 in xtick? Matlab always tells me that these values must be numeric...Thanks

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-9-29
set(gca,'xtick',[1 2 3 4],'xticklabel',{'a','b','c','d'})

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by