% This function is part of the NMSM Pipeline, see file for full license.
%
% This function adjusts the max isometric force for the given muscle in
% both the OpenSim model and the auxiliary data.
%
% (struct, struct) -> (struct)
%
function inputs = applyMaxIsometricForceParameter(inputs, values)
parameterSet = inputs.auxdata.userDefinedVariables;
inputs.auxdata.model = Model(inputs.auxdata.model);
counter = 1;
for i = 1:length(parameterSet)
if strcmp(parameterSet{i}.type, 'max_isometric_force')
adjustModelMaxIsometricForce(inputs.auxdata.model, ...
parameterSet{i}.muscle, values.max_isometric_force(counter));
inputs = adjustMaxIsometricForce(inputs, ...
parameterSet{i}.muscle, values.max_isometric_force(counter));
counter = counter + 1;
end
end
end