Page 1 of 1

Developing Fatigable Muscle Code in MATLAB

Posted: Wed May 23, 2018 11:01 am
by shivangi2208
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

Re: Developing Fatigable Muscle Code in MATLAB

Posted: Fri May 25, 2018 11:02 pm
by tkuchida
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).

Re: Developing Fatigable Muscle Code in MATLAB

Posted: Sun May 27, 2018 1:37 pm
by shivangi2208
Thank you Thomas for your suggestions.
But can I achieve this directly with MATLAB, without creating a plugin?

Regards,
Shivangi

Re: Developing Fatigable Muscle Code in MATLAB

Posted: Sun May 27, 2018 3:59 pm
by jimmy
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.

Re: Developing Fatigable Muscle Code in MATLAB

Posted: Sun May 27, 2018 11:52 pm
by shivangi2208
OK. Got it. Thank you James.

Regards,
Shivangi

Re: Developing Fatigable Muscle Code in MATLAB

Posted: Mon May 28, 2018 2:59 am
by tkuchida
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