help > Error when working with Conditions
Showing 1-2 of 2 posts
Display:
Results per page:
Jan 13, 2020  12:01 AM | John Johnson - Georgia Institute of Technology
Error when working with Conditions
Any changes I make in the Conditions results in an error. This happens when I try to create a condition manually, or when I try to import my .txt file.
Thanks for any help.


ERROR DESCRIPTION:

Error using reshape
Size vector must have at least two elements.

Error in conn_convertcondition2covariate (line 63)
x=mean(reshape(x(offs+(1:10*CONN_x.Setup.nscans{nsub}{nses})),[10,CONN_x.Setup.nscans{nsub}{nses}]),1)';%x=x(1+10*(0:CONN_x.Setup.nscans{nsub}{nses}-1));

Error in conn (line 3594)
out=conn_convertcondition2covariate('-DONOTAPPLYSUBJECTS',tnsubs,1:numel(CONN_x.Setup.conditions.names)-1);
CONN18.b
SPM12 + Anatomy DEM FieldMap MEEGtools bspmview marsbar wfupickatlas
Matlab v.2019b
project: CONN18.b
storage: 354.9Gb available

spm @ /Volumes/Data/Drive/MATLAB/spm12
conn @ /Volumes/Data/Drive/MATLAB/conn
Jan 15, 2020  02:01 PM | Alfonso Nieto-Castanon - Boston University
RE: Error when working with Conditions
Hi John,

That error perhaps indicates that you may have not yet entered your functional data into your CONN project (so CONN does not know yet how long your runs/sessions last when attempting to interpret your new condition onset/duration information). Please let me know if entering your functional data first fixes this issue (and I will fix the code so that it fails more graciously -e.g. simply skipping the condition display in these cases should work just fine)

Best
Alfonso

Originally posted by John Johnson:
Any changes I make in the Conditions results in an error. This happens when I try to create a condition manually, or when I try to import my .txt file.
Thanks for any help.


ERROR DESCRIPTION:

Error using reshape
Size vector must have at least two elements.

Error in conn_convertcondition2covariate (line 63)
x=mean(reshape(x(offs+(1:10*CONN_x.Setup.nscans{nsub}{nses})),[10,CONN_x.Setup.nscans{nsub}{nses}]),1)';%x=x(1+10*(0:CONN_x.Setup.nscans{nsub}{nses}-1));

Error in conn (line 3594)
out=conn_convertcondition2covariate('-DONOTAPPLYSUBJECTS',tnsubs,1:numel(CONN_x.Setup.conditions.names)-1);
CONN18.b
SPM12 + Anatomy DEM FieldMap MEEGtools bspmview marsbar wfupickatlas
Matlab v.2019b
project: CONN18.b
storage: 354.9Gb available

spm @ /Volumes/Data/Drive/MATLAB/spm12
conn @ /Volumes/Data/Drive/MATLAB/conn