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 个)
Azzi Abdelmalek
2014-2-19
x=0:200:1800
y=sin(x)
xi=0:50:1800
yi=interp1(x,y,xi)
plot(xi,yi)
Iain
2014-2-19
Starting after you've plotted it:
set(gca,'XTick',[0:50:1800])
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!