Can you exclude dates in date range using xlim?
Afficher commentaires plus anciens
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 commentaires
Sulaymon Eshkabilov
le 21 Oct 2021
With xticks() and xticklabels(), you can show any values you'd need to display.
Louise Wilson
le 21 Oct 2021
KSSV
le 21 Oct 2021
While plotting itself, you take the required data and plot.
Louise Wilson
le 21 Oct 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Calendar dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

