help > RE: Event-related conditions with batch
Apr 8, 2020  07:04 PM | Kaitlin Cassady - University of Michigan - Ann Arbor
RE: Event-related conditions with batch
Hi Alfonso,

Never mind, I figured it out! I changed the code to:

functionalz=cellstr(conn_dir('4D_uaf*.nii'));
functionalz=reshape(functionalz,[nsessions,nsubjects]); 

batch.Setup.functionals=repmat({{}},[nsubjects,1]);
for nsub=1:nsubjects
for nses=1:nsessions
batch.Setup.functionals{nsub}{nses}=functionalz{nses,nsub};
end
end

... and it worked. Thanks for all your help! :)

Threaded View

TitleAuthorDate
Kaitlin Cassady Mar 27, 2020
Alfonso Nieto-Castanon Mar 27, 2020
Kaitlin Cassady Mar 27, 2020
Alfonso Nieto-Castanon Mar 28, 2020
Kaitlin Cassady Mar 28, 2020
Alfonso Nieto-Castanon Apr 5, 2020
Kaitlin Cassady Apr 7, 2020
RE: Event-related conditions with batch
Kaitlin Cassady Apr 8, 2020