% This function is part of the NMSM Pipeline, see file for full license.
%
% This function returns a string array of the muscles in the model in the
% order they are listed in the model
%
% (Model) -> (Array of string)
% Returns the muscles in the model
function muscles = getEnabledMusclesInOrder(model)
muscles = string([]);
for i=0:model.getForceSet().getMuscles().getSize()-1
if model.getForceSet().getMuscles().get(i).get_appliesForce()
muscles(end+1) = ...
model.getForceSet().getMuscles().get(i).getName().toCharArray';
end
end