help > RE: Motion measure AFTER scrubbing
Jul 6, 2018  09:07 AM | Jordon Tng
RE: Motion measure AFTER scrubbing
Dear CONN users,

I am also interested in the motion measures after scrubbing is done.

I followed the steps but reached this MATLAB error:

cov = conn_module('get','Setup.l1covariates');
idx = find(strcmp(cov.names,'scrubbing'));
files = {};
for nsub=1:numel(cov.files)
for nses=1:numel(cov.files{nsub}{idx})
R = double(all(cov.files{nsub}{idx}{nses}{3}==0,2));
files{nsub}{nses} = fullfile(fileparts(cov.files{nsub}{idx}{nses}{1}),'validscans.mat');
save(files{nsub}{nses},'R');
end
end
conn_batch('Setup.covariates.names',{'QA_valid'},'Setup.covariates.files',{files},'Setup.covariates.add',true);
conn_batch('Setup.conditions.names',{'validscans'},'Setup.conditions.param',numel(cov.names),'Setup.conditions.add',true);
conn_process setup_conditions;
Index exceeds matrix dimensions.

Error in conn_batch (line 898)
for nses=1:CONN_x.Setup.nsessions(nsub),


Is there anything I am missing?

Thanks in advance,
Jordon

Threaded View

TitleAuthorDate
hannes berg Jun 15, 2017
Alfonso Nieto-Castanon Jun 16, 2017
Larry Lai Jul 6, 2018
RE: Motion measure AFTER scrubbing
Jordon Tng Jul 6, 2018
hannes berg Jun 16, 2017
Jeff Browndyke Jun 16, 2017
Alfonso Nieto-Castanon Jun 16, 2017
Jordon Tng Aug 1, 2018
Jeffrey Johnson Oct 28, 2019
Jeff Browndyke Jun 18, 2017
hannes berg Jun 16, 2017