How do I make an entity output switch sort entities based on attributes?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
After generating entities with randomly assigned gender attributes, male or female, I am now trying to separate the two groups into a "male" group and a "female" group using an entity output switch in sim events. How do I get the output switch to recognize "male" and "female" to divide the groups?
0 commentaires
Réponses (1)
Vishwas
le 8 Déc 2017
Have you had a look at "findgroups".
Use "splitapply" to further apply a function on the split data
0 commentaires
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!