Skip to main content

calcMinimizingJointJerkIntegrand.m


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


function cost = calcMinimizingJointJerkIntegrand(jointJerks, params, ...
coordinateName)

indx = find(strcmp(convertCharsToStrings(params.coordinateNames), ...
coordinateName));
cost = calcMinimizingCostArrayTerm(jointJerks(:, indx));
end