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. Related SolutionsMATLAB: Reformatting Dates strrep is faster than regexprep:a = '12/01/2011';% Or a cell string also:% a = {'12/01/2011', '12/01/2012'};b = strrep(a, '/', ''); MATLAB: Visualization Dates Using keeplimits argument you can avoid this issue.Mtlb Usr Related QuestionConvert date to datetimeExcel datesDate computations in a tableFrom discrete dates to continuous dates (revised)Time series data with missing dates to remap to calendar days vectorPlotting table data with dates
Best Answer