MATLAB: Extract a table with some range of dates

MATLABtable

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.

Best Answer

In R2016b or later, the best way to do this is to use a timetable, and use timerange to create a row subscript.