Page 1 of 1

Muscle names of a particular group

Posted: Mon Dec 16, 2019 7:59 am
by yangkaiwen
Hello,

How do I get muscle games of a particular muscle group in the model in Matlab?

I need something like:

model=Model('gait2392_simbody.osim);

name=model.getMuscles.getGroup('R_hip_abd').get(1)

names should show 'glut_max1_r'

Re: Muscle names of a particular group

Posted: Mon Dec 16, 2019 8:29 am
by jimmy
Groups are managed by the Set(), you can find the methods here;
https://simtk.org/api_docs/opensim/api_ ... _1Set.html

Re: Muscle names of a particular group

Posted: Mon Dec 16, 2019 6:17 pm
by yangkaiwen
Thanks.

I found this works.

a=Model.getForceSet.getGroup(0).getMembers().get(0);

a =

glut_max1_r

Kaiwen