Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Fltering to subsets of matrices
1 回表示 (過去 30 日間)
古いコメントを表示
both Excel and Sql can 'query' and run functions on subsets of data based on common lable fields (e.g. return all sales in GA)
sum if 'GA' or count if 'GA'
Does Matlab have similare functionality?
1 件のコメント
回答 (1 件)
per isakson
2012 年 5 月 4 日
Yes!
sum( MyData( strcmp( MyData( :, ixColumn ), 'GA' ), : ), 1 )
This question is very close to Summing values with database "group by" functionality. It is a better tactic to provide a toy example than repeating the question! Didn't the answers to you other question help you?
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!