Skip to main content

calcMaximizingMuscleActivationIntegrand.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function maximizes the muscle activation for the specified muscle.
%
% (2D matrix, struct, Array of string) -> (Array of number)
%


function cost = calcMaximizingMuscleActivationIntegrand(...
muscleActivations, params, muscleName)

indx = find(strcmp(convertCharsToStrings(params.muscleNames), ...
muscleName));
cost = calcMaximizingCostArrayTerm(muscleActivations(:, indx));
end