Skip to main content

calcMinimizingMassCenterVelocityXIntegrand.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function minimizes the center of mass velocity in the x direction.
%
% (struct, struct) -> (Array of number)
%


function cost = calcMinimizingMassCenterVelocityXIntegrand(values, params)

massCenterVelocity = calcMassCenterVelocity(values, params.model, ...
params.coordinateNames);
cost = calcMinimizingCostArrayTerm(massCenterVelocity(:, 1));
end