How to standard ticks on x-axis?

조회 수: 1 (최근 30일)
AbelM Kusemererwa
AbelM Kusemererwa 2015년 7월 16일
편집: Azzi Abdelmalek 2015년 7월 16일
I have a 24hr data, how can I force the x-axis to have ticks 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 16일
편집: Azzi Abdelmalek 2015년 7월 16일
plot(0:24)
set(gca,'xtick',0:24)
Look also
doc xticklabel

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by