Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Fltering to subsets of matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Antworten (1)
per isakson
am 4 Mai 2012
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?
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!