Developing Fatigable Muscle Code in MATLAB

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Shivangi Giri
Posts: 50
Joined: Sun Jul 02, 2017 3:04 am

Developing Fatigable Muscle Code in MATLAB

Post by Shivangi Giri » Wed May 23, 2018 11:01 am

Hi,
I wanted to add fatigue to muscles using Fatigable Muscle class through a MATLAB code. When I try to access the FatigableMuscle() in MATLAB, it throws an error saying no such class found. I suspect this is due to MATLAB's limited access to OpenSim's library.
Has anyone here tried to incorporate muscle fatigue in OpenSim through MATLAB?
Any help would be greatly appreciated.

Regards,
Shivangi

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: Developing Fatigable Muscle Code in MATLAB

Post by Thomas Uchida » Fri May 25, 2018 11:02 pm

You could compile the class into a plugin (see the "Creating Plugins" https://simtk-confluence.stanford.edu/d ... ng+Plugins and "Using Plugins" https://simtk-confluence.stanford.edu/d ... ng+Plugins pages in the Confluence documentation).

User avatar
Shivangi Giri
Posts: 50
Joined: Sun Jul 02, 2017 3:04 am

Re: Developing Fatigable Muscle Code in MATLAB

Post by Shivangi Giri » Sun May 27, 2018 1:37 pm

Thank you Thomas for your suggestions.
But can I achieve this directly with MATLAB, without creating a plugin?

Regards,
Shivangi

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

Re: Developing Fatigable Muscle Code in MATLAB

Post by jimmy d » Sun May 27, 2018 3:59 pm

There is no Fatigable Muscle class in OpenSim so you cannot call it anywhere, including Matlab. If you want to build your own fatigue muscle model, you would have to write it in C++ and compile as a plugin.

User avatar
Shivangi Giri
Posts: 50
Joined: Sun Jul 02, 2017 3:04 am

Re: Developing Fatigable Muscle Code in MATLAB

Post by Shivangi Giri » Sun May 27, 2018 11:52 pm

OK. Got it. Thank you James.

Regards,
Shivangi

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: Developing Fatigable Muscle Code in MATLAB

Post by Thomas Uchida » Mon May 28, 2018 2:59 am

You might investigate whether you can use the FatigableMuscleModel_PlugIn available here:
- SimTK project page: "Developing a fatigable muscle model", https://simtk.org/projects/fatigablemuscle
- Description: "Design of a Fatigable Muscle", https://simtk-confluence.stanford.edu:8 ... ble+Muscle

POST REPLY