Clear Filters
Clear Filters

How to add the rows if it is same.

1 view (last 30 days)
MakM
MakM on 25 Dec 2021
Commented: MakM on 25 Dec 2021
I am trying to add the rows that have same game column. For example, for same rows like game value =0, the output should be 0.633+13.7167+16.3333. How can we do that?

Accepted Answer

Simon Chan
Simon Chan on 25 Dec 2021
Put your data into a table with Variable Names 'Game' and 'Time', then use function groupsummary to sum up the values
groupsummary(T,"Game","sum") % T is your table

More Answers (0)

Categories

Find more on Just for fun 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!