how to sum columns between two dates in a table
1 view (last 30 days)
Show older comments
Ishak Oussama
on 25 Jan 2019
Commented: Ishak Oussama
on 26 Jan 2019
2 Comments
Walter Roberson
on 26 Jan 2019
Your questions are easier to read when posted as text instead of as image of text.
Accepted Answer
Walter Roberson
on 26 Jan 2019
mask = YourTable(:,1) >= start_date & YourTable(:,1) <= end_date;
Table_subset = YourTable(mask,:);
and now you can do the totaling that you need.
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!