Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Im ploting a graph where my x axis is in time format. How do I adjust the intervals of the x axis to be 15 minutes? Start at 00:00:00 ending at 23:45:00

조회 수: 1 (최근 30일)

답변 (1개)

Benjamin Großmann
Benjamin Großmann 2018년 4월 24일
You can get the char array containing your requested date values by
charArray = datestr(0:minutes(15):hours(23.75),'HH:MM:ss');
then you have to adjust your axes and set the charArray as xTickLabel.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by