Skip to main content

findNumSpringMarkers.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function returns the number of markers that have "spring_marker_"
% prefix in their name.
%
% (Model) -> (int)
% Find the number of "spring_marker_" prefix markers are in the model


function counter = findNumSpringMarkers(model)
model = Model(model);
counter = 0;
for i=0:model.getMarkerSet().getSize()-1
if contains(model.getMarkerSet().get(i).getName().toCharArray', ...
"spring_marker_")
counter = counter + 1;
end
end
end