Skip to main content

adjustModelTendonSlackLength.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function adjusts the tendon slack length for the given muscle on
% the OpenSim model.
%
% (Model, Array of string, Number) -> ()
%


function adjustModelTendonSlackLength(model, muscleName, value)
import org.opensim.modeling.*
model.getForceSet().getMuscles().get(muscleName). ...
setTendonSlackLength(value);
end