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