Skip to content

Commit d8a81ff

Browse files
authored
Update spm_BIDS_App.m
1 parent 9d84a56 commit d8a81ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spm_BIDS_App.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@
255255

256256
%-Simplify BIDS structure to only contain participants under study
257257
%--------------------------------------------------------------------------
258-
[idx,jdx] = ismember({BIDS.subjects.name},BIDS_App.participants);
259-
jdx = jdx(idx); idx = find(idx);
260-
BIDS.subjects = BIDS.subjects(idx(jdx));
258+
idx = ismember({BIDS.subjects.name},BIDS_App.participants);
259+
BIDS.subjects = BIDS.subjects(idx);
260+
% BIDS.participants variables should also be edited
261261

262262
%==========================================================================
263263
%-Analysis level: participant*

0 commit comments

Comments
 (0)