Change the xtick to string
xticks2string(str,n)
string input to replace the current xticks
number of ticks in x axis
This is to change the xticks to string replacing numbers
x = 1:10 plot(x,y); xx = ['a','b','c','d','e','f','g','h','i','j','k']; xticks2string(xx,5);