Can you exclude dates in date range using xlim?
이전 댓글 표시
I have a dataset where the x axis is time and the y axis is sound pressure level in dB. The data is recorded continuously on a 24hr cycle, but I'm not interested in the data collected at night. Is there a way to exclude this data using xticks or xlim?
At the moment I have:
xlim([start_dt, end_dt]); %filter to date range of interest
Would the best way to address this be to replace sd with multiple datetime ranges somehow to exclude the evening data? I'm not sure how to code this?
댓글 수: 4
Sulaymon Eshkabilov
2021년 10월 21일
With xticks() and xticklabels(), you can show any values you'd need to display.
Louise Wilson
2021년 10월 21일
KSSV
2021년 10월 21일
While plotting itself, you take the required data and plot.
Louise Wilson
2021년 10월 21일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

