Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to count the total count of each unique occurance
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have below Table, and I want to count
- Total count of data(just column1)
- Total count of passed cases
- Total count of failed cases
- Total count of struck
- Total count of removed cases.
RCP1 passed
RCP4 passed
RCP6 failed
RCP2 passed
RCP2 failed
RCP3 failed
RCP5 passed
RCP2 struck
RCP2 passed
RCP4 passed
RCP4 passed
RCP4 struck
RCP4 removed
Many thanks in advance.
0 件のコメント
回答 (1 件)
the cyclist
2016 年 6 月 4 日
Here's one way:
C = {
'passed'
'passed'
'failed'
'passed'
'failed'
'failed'
'passed'
'struck'
'passed'
'passed'
'passed'
'struck'
'removed'};
G = grpstats(table(C),'C');
sum(G.GroupCount)
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!