how to sum columns between two dates in a table

1 view (last 30 days)
  2 Comments
Walter Roberson
Walter Roberson on 26 Jan 2019
Your questions are easier to read when posted as text instead of as image of text.

Sign in to comment.

Accepted Answer

Walter Roberson
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.

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Products


Release

R2014b

Community Treasure Hunt

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

Start Hunting!