Please make it so that that is regular MATLAB code that we can run easily by copying and pasting.
You can use xlim() to set the range of your x axis, for example to have 16 in the middle of the x axis of the chart:
xlim([1 31]);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!