Skip to main content

findSpecificMusclesInData.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% () -> ()
%


function cells = findSpecificMusclesInData(cells, columnNames, muscleNames)
muscleNamesIndex = [];
for i = 1:length(columnNames)
for j = 1:length(muscleNames)
if strcmpi(columnNames(i), muscleNames(j))
muscleNamesIndex(end+1) = i;
end
end
end
cells = cells(:, muscleNamesIndex, :);
end