How to get the no of default ticks formed in to the code when plotting a figure in matlab?

I am plotting the data vs time. I am using the datenum function to convert the time in to values and plotting the graphs for now. And then I want to change the X labels from datenum values to actual time. But for that I have to know the no of ticks formed.

 채택된 답변

You can actually just use the datetick function:
dFormat = 'mmm-yyyy'; % or whatever date format you want
datetick('x',dFormat)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2015년 9월 1일

답변:

2015년 9월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by