change xticklabel and datetick
조회 수: 2 (최근 30일)
이전 댓글 표시
I changed xticklabel.
set(gca,'xlim',[0 69], 'ylim', [-8 8]);
set(gca,'XTickLabel',734460:734528)
datetick(x,'mm/dd','keepticks')
xtick is 11/18, 11/19...but I hope xtick format is 01/01, 01/02....(month/day)
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 11월 7일
You will have to tell plot to use 734460:734528 as your x values. For example,
plot(734460:734528, y)
instead of
plot(y)
Once you have done that, you can do the datetick()
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Axes Appearance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!