% This function is part of the NMSM Pipeline, see file for full license.
%
% This function bounds the muscle activations to the user defined values
% for the specified muscle. Applicable only if the model is synergy driven.
%
% (struct, struct, 2D matrix, Array of string) -> (Array of number)
%
function pathTerm = calcMuscleActivationsPathConstraint(params, ...
modeledValues, muscleName)
indx = find(strcmp(convertCharsToStrings(params.muscleNames), ...
muscleName));
pathTerm = modeledValues.muscleActivations(:, indx);
end