Debian Codegraph @

test/private/getStagesFromStatus.m

raw
1 function stages = getStagesFromStatus(status)
2 % retrieves the different (names of) stages of a status struct
3 fields = fieldnames(status);
4 stages = fields(cellfun(@(f) ~isempty(strfind(f,'Stage')), fields));
5 end