setting the step of x and y axes
2 views (last 30 days)
Show older comments
I'm looking for the way to set the step of x and y axes. does it exist a way?
Accepted Answer
Azzi Abdelmalek
on 18 Oct 2012
Edited: Azzi Abdelmalek
on 18 Oct 2012
t=0:0.1:10
y=cos(t)
plot(t,y)
set(gca,'xtick',linspace(min(t),max(t),8),'ytick',linspace(min(y),max(y),8))
0 Comments
More Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!