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