How to add the rows if it is same.

2 vues (au cours des 30 derniers jours)
MakM
MakM le 25 Déc 2021
Commenté : MakM le 25 Déc 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?

Réponse acceptée

Simon Chan
Simon Chan le 25 Déc 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
  1 commentaire
MakM
MakM le 25 Déc 2021
Thank you Chan. It worked :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Just for fun dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by