how to sum columns between two dates in a table
2 次查看(过去 30 天)
显示 更早的评论
2 个评论
Walter Roberson
2019-1-26
Your questions are easier to read when posted as text instead of as image of text.
采纳的回答
Walter Roberson
2019-1-26
mask = YourTable(:,1) >= start_date & YourTable(:,1) <= end_date;
Table_subset = YourTable(mask,:);
and now you can do the totaling that you need.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!