Muscle names of a particular group

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Kaiwen Yang
Posts: 45
Joined: Mon Sep 03, 2018 11:25 am

Muscle names of a particular group

Post by Kaiwen Yang » Mon Dec 16, 2019 7:59 am

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'

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Muscle names of a particular group

Post by jimmy d » Mon Dec 16, 2019 8:29 am

Groups are managed by the Set(), you can find the methods here;
https://simtk.org/api_docs/opensim/api_ ... _1Set.html

User avatar
Kaiwen Yang
Posts: 45
Joined: Mon Sep 03, 2018 11:25 am

Re: Muscle names of a particular group

Post by Kaiwen Yang » Mon Dec 16, 2019 6:17 pm

Thanks.

I found this works.

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

a =

glut_max1_r

Kaiwen

POST REPLY