MATLAB: How to start xlim from 2 rather than 1

axisgraphMATLAB

a = rand(1,33);
bar(a(2:33))
Now i need xlimit for each lines and it should start from 2 and continue with 3 4 5 6…..33

Best Answer

What do you mean by continue with 3 4 5 6 ... 333?
Perhaps something like this?
set(gca,'xlim',[2 33]);