How to add the rows if it is same.

2 ビュー (過去 30 日間)
MakM
MakM 2021 年 12 月 25 日
コメント済み: MakM 2021 年 12 月 25 日
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?

採用された回答

Simon Chan
Simon Chan 2021 年 12 月 25 日
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 件のコメント
MakM
MakM 2021 年 12 月 25 日
Thank you Chan. It worked :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by