calcTrackingCostArrayTerm.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% This function calculates the cost for tracking values
%
% (Array of number, Array of number, number) -> (Array of number)
% returns tracking cost
function cost = calcTrackingCostArrayTerm(modelValue, experimentalValue, ...
trackingIndex)
errorMatching = modelValue - experimentalValue;
errorMatching = errorMatching(:, trackingIndex);
cost = errorMatching;
end