How do I make an entity output switch sort entities based on attributes?

1 Ansicht (letzte 30 Tage)
James Williams
James Williams am 29 Nov. 2017
Beantwortet: Vishwas am 8 Dez. 2017
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?

Antworten (1)

Vishwas
Vishwas am 8 Dez. 2017
Have you had a look at "findgroups".
Use "splitapply" to further apply a function on the split data

Kategorien

Mehr zu Biomedical Imaging finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by