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'
Muscle names of a particular group
- Kaiwen Yang
- Posts: 45
- Joined: Mon Sep 03, 2018 11:25 am
Re: Muscle names of a particular group
Groups are managed by the Set(), you can find the methods here;
https://simtk.org/api_docs/opensim/api_ ... _1Set.html
https://simtk.org/api_docs/opensim/api_ ... _1Set.html
- Kaiwen Yang
- Posts: 45
- Joined: Mon Sep 03, 2018 11:25 am
Re: Muscle names of a particular group
Thanks.
I found this works.
a=Model.getForceSet.getGroup(0).getMembers().get(0);
a =
glut_max1_r
Kaiwen
I found this works.
a=Model.getForceSet.getGroup(0).getMembers().get(0);
a =
glut_max1_r
Kaiwen