collapsing redundant entries in MATLAB table

5 ビュー (過去 30 日間)
Marouen Ben Guebila
Marouen Ben Guebila 2019 年 11 月 2 日
回答済み: Daniel M 2019 年 11 月 2 日
I have the following MATLAB table
item_a item_b score
a b 1
a b 1
b c 3
d e 2
d e 1
d e 0
I want average the redundant rows. The result should be as follows:
item_a item_b score
a b (1+1)/2
b c 3
d e (2+1+0)/3
I could not find a way to do it. Could you please help?

採用された回答

Daniel M
Daniel M 2019 年 11 月 2 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by