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!

