We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26af473 commit 2530bb4Copy full SHA for 2530bb4
subfun/getData.m
@@ -78,9 +78,10 @@
78
group(iGroup).subNumber = subjects;
79
80
% if subject ID were directly specified by users we take those
81
- elseif strcmp(group(iGroup).name, '') && iscell(opt.subjects{iGroup})
+ elseif strcmp(group(iGroup).name, '') && iscellstr(opt.subjects)
82
83
group(iGroup).subNumber = opt.subjects;
84
+
85
% if group was specified we figure out which subjects to take
86
elseif ~isempty(opt.subjects{iGroup})
87
@@ -92,7 +93,7 @@
92
93
% count how many subjects in that group
94
idx = sum(~cellfun(@isempty, strfind(subjects, group(iGroup).name)));
95
idx = 1:idx;
-
96
97
else
98
99
error('Not sure what to do.')
0 commit comments