MATLAB: How to sum columns between two dates in a table

MATLABsumtable

Best Answer

mask = YourTable(:,1) >= start_date & YourTable(:,1) <= end_date;
Table_subset = YourTable(mask,:);
and now you can do the totaling that you need.