how to start xlim from 2 rather than 1
1 view (last 30 days)
Show older comments
a = rand(1,33);
bar(a(2:33))
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153665/image.jpeg)
Now i need xlimit for each lines and it should start from 2 and continue with 3 4 5 6.....33
0 Comments
Accepted Answer
Ilham Hardy
on 29 Jan 2016
What do you mean by continue with 3 4 5 6 ... 333?
Perhaps something like this?
set(gca,'xlim',[2 33]);
2 Comments
Ilham Hardy
on 29 Jan 2016
Edited: Ilham Hardy
on 29 Jan 2016
What you meant is xtick..
set(gca,'xtick',[2:1:33]);
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!