How do I make an entity output switch sort entities based on attributes?
Show older comments
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?
Answers (1)
Vishwas
on 8 Dec 2017
0 votes
Have you had a look at "findgroups".
Use "splitapply" to further apply a function on the split data
Categories
Find more on Web Services in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!