Page 1 of 1

Load Custom Muscle Model in MATLAB

Posted: Thu Apr 14, 2022 12:04 pm
by soheil2021
Hi all,

I created a custom muscle model based on the following tutorial which is the customised version of FatigableMuscle :
https://simtk-confluence.stanford.edu:8 ... scle+Model

For further analysis which is part of my work, I need to load this custom muscle in MATLAB and interact with it. I managed to access OpenSim API in MATLAB based on the following link:
https://simtk-confluence.stanford.edu:8 ... ith+Matlab

I would like to know how I can load and access the custom muscle in MATLAB like other OpenSim API features.
Not sure what is the best approach to achieve this! Is there any guide in OpenSim documents in this regard? Is there any way to achieve this?

Thanks in advance,
Soheil

Re: Load Custom Muscle Model in MATLAB

Posted: Fri Apr 15, 2022 10:12 am
by tkuchida
You could build your new muscle model into a plugin. Please see the following pages in the User's Guide:
- "Creating Plugins", https://simtk-confluence.stanford.edu:8 ... ng+Plugins
- "Using Plugins", https://simtk-confluence.stanford.edu:8 ... ng+Plugins
You may also wish to search the Forum for the word "plugin" (search.php?keywords=plugin) for additional information.