필터 지우기
필터 지우기

Usage of xticks() when plotting a timetable

조회 수: 4 (최근 30일)
giacomo labbri
giacomo labbri 2020년 6월 3일
답변: Steven Lord 2020년 6월 3일
Hi,
I am plotting the content of a timetable that contains a variable over a few months. The xtick in automatic mode are set just every 5 days or so but i would like to have a xtick for each day. I understood that the funcion xticks might be helpful but I was wondering if there is a way to obtain a tick for each day without manually specify them.
Thanks in advance,
Giacomo

채택된 답변

Steven Lord
Steven Lord 2020년 6월 3일
If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each one.
T = datetime('today');
theWeek = T + days(0:6)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by