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!