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 (최근 30일)
axis setting

답변 (2개)

Azzi Abdelmalek
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
Iain 2014년 2월 19일
Starting after you've plotted it:
set(gca,'XTick',[0:50:1800])

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by