help
help > Error importing SPM.mat file
Nov 25, 2014 06:11 PM | Xiaozhen You
Error importing SPM.mat file
Dear experts,
I'm encountering the error during the Setup using SPM.mat files in batch. and I did some debugging, seems conn_importspm goes before assigning other Setup info to the global variable CONN_x. Wonder how to fix this.
Also if I have 2 different tasks within subjects, thus with 2 different SPM.mat file, can I also setup the spmfiles as spmfiles{nsub}{nsession} for conn_batch to automatically recognize the conditions etc?
Thanks!
Xiaozhen
"Reference to non-existent field 'Setup'.
Error in conn_importspm (line 9)
if nsubjects~=CONN_x.Setup.nsubjects,
CONN_x.Setup.nsubjects=conn_merge(CONN_x.Setup.nsubjects,nsubjects); end
Error in conn_batch (line 242)
conn_importspm(batch.Setup.spmfiles);
Error in BatchScript_withexcel_Connallfields_spm (line 188)
conn_batch(batch);"
I'm encountering the error during the Setup using SPM.mat files in batch. and I did some debugging, seems conn_importspm goes before assigning other Setup info to the global variable CONN_x. Wonder how to fix this.
Also if I have 2 different tasks within subjects, thus with 2 different SPM.mat file, can I also setup the spmfiles as spmfiles{nsub}{nsession} for conn_batch to automatically recognize the conditions etc?
Thanks!
Xiaozhen
"Reference to non-existent field 'Setup'.
Error in conn_importspm (line 9)
if nsubjects~=CONN_x.Setup.nsubjects,
CONN_x.Setup.nsubjects=conn_merge(CONN_x.Setup.nsubjects,nsubjects); end
Error in conn_batch (line 242)
conn_importspm(batch.Setup.spmfiles);
Error in BatchScript_withexcel_Connallfields_spm (line 188)
conn_batch(batch);"
if
isfield(batch.Setup,'spmfiles')&&~isempty(batch.Setup.spmfiles),
CONN_x.gui=struct('overwrite',batch.Setup.overwrite);
conn_importspm(batch.Setup.spmfiles);
CONN_x.gui=1;
end
if isfield(batch.Setup,'RT')&&~isempty(batch.Setup.RT),CONN_x.Setup.RT=batch.Setup.RT;end
if isfield(batch.Setup,'nsubjects')&&~isempty(batch.Setup.nsubjects),
if batch.Setup.nsubjects~=CONN_x.Setup.nsubjects, CONN_x.Setup.nsubjects=conn_merge(CONN_x.Setup.nsubjects,batch.Setup.nsubjects); end
% CONN_x.Setup.nsubjects=batch.Setup.nsubjects; % number of subjects
end
CONN_x.gui=struct('overwrite',batch.Setup.overwrite);
conn_importspm(batch.Setup.spmfiles);
CONN_x.gui=1;
end
if isfield(batch.Setup,'RT')&&~isempty(batch.Setup.RT),CONN_x.Setup.RT=batch.Setup.RT;end
if isfield(batch.Setup,'nsubjects')&&~isempty(batch.Setup.nsubjects),
if batch.Setup.nsubjects~=CONN_x.Setup.nsubjects, CONN_x.Setup.nsubjects=conn_merge(CONN_x.Setup.nsubjects,batch.Setup.nsubjects); end
% CONN_x.Setup.nsubjects=batch.Setup.nsubjects; % number of subjects
end
Threaded View
Title | Author | Date |
---|---|---|
Xiaozhen You | Nov 25, 2014 | |
Xiaozhen You | Nov 26, 2014 | |
Alfonso Nieto-Castanon | Nov 27, 2014 | |
Xiaozhen You | Dec 9, 2014 | |
Alfonso Nieto-Castanon | Dec 10, 2014 | |
Alfonso Nieto-Castanon | Dec 10, 2014 | |
Xiaozhen You | Dec 10, 2014 | |
Alfonso Nieto-Castanon | Dec 12, 2014 | |
Xiaozhen You | Dec 23, 2014 | |
Xiaozhen You | Dec 23, 2014 | |
Alfonso Nieto-Castanon | Dec 24, 2014 | |
Xiaozhen You | Dec 31, 2014 | |
Alfonso Nieto-Castanon | Dec 31, 2014 | |
Xiaozhen You | Jan 1, 2015 | |
Alfonso Nieto-Castanon | Jan 1, 2015 | |
Xiaozhen You | Jan 2, 2015 | |
Alfonso Nieto-Castanon | Jan 3, 2015 | |
Xiaozhen You | Jan 5, 2015 | |
Xiaozhen You | Jan 6, 2015 | |
Alfonso Nieto-Castanon | Jan 15, 2015 | |
Xiaozhen You | Jan 15, 2015 | |
Xiaozhen You | Dec 17, 2014 | |
Xiaozhen You | Nov 27, 2014 | |
Alfonso Nieto-Castanon | Nov 26, 2014 | |