% This function is part of the NMSM Pipeline, see file for full license.
%
% This function disables all muscles (if any) in the model
%
% (Model, struct) -> (Model, struct)
% All muscles are disabled in the model
function [model, inputs] = disableModelMuscles(inputs, model)
import org.opensim.modeling.Model
inputs.numTotalMuscles = model.getForceSet().getMuscles().getSize();
for i = 0:model.getForceSet().getMuscles().getSize()-1
if model.getForceSet().getMuscles().get(i).get_appliesForce()
model.getForceSet().getMuscles().get(i).set_appliesForce(0);
end
end