Clear Filters
Clear Filters

could anyone tell me how to set the x axis to (2 4 6 8 10 12)

2 views (last 30 days)
could anyone tell me how to set the x axis to (2 4 6 8 10 12)

Accepted Answer

YT
YT on 5 Mar 2018
Like so
plot(x,y);
xlim([2,12]);
set(gca,'XTick',[2:2:12]);

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!