How do I make an entity output switch sort entities based on attributes?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Vishwas
2017-12-8
Have you had a look at "findgroups".
Use "splitapply" to further apply a function on the split data
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biomedical Imaging 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!