Clear Filters
Clear Filters

i plotted a graph its X-axis ranging from 0-1800 with a spacing of 200. how can i change the interval to 50 with same range(0-1800)

2 views (last 30 days)
axis setting

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 19 Feb 2014
x=0:200:1800
y=sin(x)
xi=0:50:1800
yi=interp1(x,y,xi)
plot(xi,yi)

Iain
Iain on 19 Feb 2014
Starting after you've plotted it:
set(gca,'XTick',[0:50:1800])

Categories

Find more on Graph and Network Algorithms 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!