How to sum data and combine with date?

I have Confirmed Cases data from different states on the same date and I want to get total Confirmed Cases of that date. How to get that?

 Accepted Answer

retime() use 'daily' and 'sum' option.

3 Comments

You should convert your data to a timetable.
Thanks it worked! But I had to remove the States because it wasn't numeric. How to aggretate data according to States also?

Sign in to comment.

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!