how to sum columns between two dates in a table

2 Comments

Your questions are easier to read when posted as text instead of as image of text.
Sorry, I had a keyboard problem.

Sign in to comment.

 Accepted Answer

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

More Answers (0)

Categories

Products

Release

R2014b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!