Extract a table with some range of dates
2 views (last 30 days)
Show older comments
Suppose I have a table with date from 2000 to 2018. I want to create a new table where the date is between Jan 1 2010 and Dec 31 2017. Please advise.
3 Comments
Accepted Answer
Peter Perkins
on 8 Jun 2018
In R2016b or later, the best way to do this is to use a timetable, and use timerange to create a row subscript.
2 Comments
Peter Perkins
on 8 Jun 2018
"timetable is a type of table that associates a time with each row."
https://www.mathworks.com/help/matlab/timetables.html
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!