pbj0812의 코딩 일기

[MATLAB] x축 날짜 맘대로 조정하기 본문

ComputerLanguage_Program/MATLAB(OCTAVE)

[MATLAB] x축 날짜 맘대로 조정하기

pbj0812 2018. 9. 3. 23:32

ddatenum=datenum(0,0,0,0,0,0):datenum(0,0,0,0,1,0):(length(b)-1)*datenum(0,0,0,0,1,0);

plot(ddatenum,b)


xlim([datenum(0,0,0,0,1,0)*1200 datenum(0,0,0,0,1,0)*1700])

set(gca,'XTick',[datenum(0,0,0,0,0,0) :datenum(0,0,0,0,30,0):datenum(0,0,0,28,20,0)])

datetick('x','DD HH:MM','keeplimits','keepticks')

xlabel('time(day hour:min)')

Comments