MATLAB: Change x-axis labels of plot

axisplot

Hi everbody,
I have a plot of 31 data points. However, instead of labeling the x-axis is (1:1:31), I want to set it to (-6:1:24). How can I do that?
Best

Best Answer

solved much simpler by going
figure,plot(-6:24,1:31)
because you're setting the x and y plot pairs.