Can you exclude dates in date range using xlim?
Show older comments
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 Comments
Sulaymon Eshkabilov
on 21 Oct 2021
With xticks() and xticklabels(), you can show any values you'd need to display.
Louise Wilson
on 21 Oct 2021
KSSV
on 21 Oct 2021
While plotting itself, you take the required data and plot.
Louise Wilson
on 21 Oct 2021
Accepted Answer
More Answers (0)
Categories
Find more on Calendar in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
