The model was created in Matlab/Simulink Version 2015b.
All parameters and variables are defined in SI units (Système international d’unités).
How to use the muscle model:
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Example Model Simulink %
%%%%%%%%%%%%%%%%%%%%%%%%%%
Simulink:
Start Matlab.
Run the init_muscle.m script. It initializes the parameters for the muscle model and determines the initial conditions.
There will be a struct "MP" in the Matlab Workspace containing all required muscle model parameters.
Open the "Model_Simulink.slx file.
Run the model.
This example puts the modeled muscle tendon complex at a constant length and thus simulates an isometric muscle contraction experiment.
%%%%%%%%%%%%%%%%%%%%%%%%
% Example Model Matlab %
%%%%%%%%%%%%%%%%%%%%%%%%
In Matlab code, the MTC model is simply a function which returns the MTC force. For more details see the function header. The internal degree of freedom has to be integrated separately depending on your application (dot_l_CE -> l_CE).
%%%%%%%%%%%%%%%%%%%%%%%
% Use several muscles %
%%%%%%%%%%%%%%%%%%%%%%%
prepare a parameter file for each muscle (see example)
initialize all muscles (see example)
In Simulink: use several copies of the MTC block. In the mask, specify the parameter struct for each muscle.
In Matlab: call the function for each muscle and pass the according parameters and variables.
If you use this model for scientific purposes, please cite our article: D.F.B. Haeufle, M. Günther, A. Bayer, S. Schmitt (2014) Hill-type muscle model with serial damping and eccentric force-velocity relation Journal of Biomechanics http://dx.doi.org/10.1016/j.jbiomech.2014.02.009
Copyright (c) 2014 belongs to D. Haeufle, M. Guenther, A. Bayer, and S. Schmitt
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1 Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2 Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3 Neither the name of the owner nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.