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
Developing Fatigable Muscle Code in MATLAB
- Shivangi Giri
- Posts: 50
- Joined: Sun Jul 02, 2017 3:04 am
- Thomas Uchida
- Posts: 1777
- Joined: Wed May 16, 2012 11:40 am
Re: Developing Fatigable Muscle Code in MATLAB
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).
- Shivangi Giri
- Posts: 50
- Joined: Sun Jul 02, 2017 3:04 am
Re: Developing Fatigable Muscle Code in MATLAB
Thank you Thomas for your suggestions.
But can I achieve this directly with MATLAB, without creating a plugin?
Regards,
Shivangi
But can I achieve this directly with MATLAB, without creating a plugin?
Regards,
Shivangi
Re: Developing Fatigable Muscle Code in MATLAB
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.
- Shivangi Giri
- Posts: 50
- Joined: Sun Jul 02, 2017 3:04 am
Re: Developing Fatigable Muscle Code in MATLAB
OK. Got it. Thank you James.
Regards,
Shivangi
Regards,
Shivangi
- Thomas Uchida
- Posts: 1777
- Joined: Wed May 16, 2012 11:40 am
Re: Developing Fatigable Muscle Code in MATLAB
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
- 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