Is there a function similar to "where"?
23 次查看(过去 30 天)
显示 更早的评论
For example i am going through a table of data with dates ranging from early 2016 through 2022, every day.
If i only want to extract data from say 2016, is there a way i can say for example:
where date is >= 01/01/2016 & < 01/01/2017
Is there any way of doing this?
Thanks
0 个评论
采纳的回答
Walter Roberson
2023-2-10
编辑:Walter Roberson
2023-2-11
convert to timetable() and use daterange()
3 个评论
更多回答(1 个)
Les Beckham
2023-2-10
The exact details depend on what type of data you have. A plain numeric matrix, a table, a cell array?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calendar 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!