help
help > Error in setting BATCH ROIs
Aug 26, 2019 05:08 PM | avantika mathur - UNL
Error in setting BATCH ROIs
Hi everyone,
I have two questions:
1. How to add the default ROIS using BATCH.
2. How to specify more MNI functional ROIS using BATCH.
I get the following error while using BATCH.setup for calling ROIS. I am trying to set up 10 ROIS for a group of 18 subjects. The ROIS are same for all subject and not subject specific.
CODE::
% Set Roi names
BATCH.Setup.rois.names = {'LSTG1.nii','LMFG1.nii','LPT.nii','LSTG2.nii','LMTG.nii','LITG.nii','LIFG_OP.nii','LIFG_Tri.nii','LMFG2.nii','LSFG.nii'};
% call .nii ROI Files
for n=1:numel(BATCH.Setup.rois.names)
BATCH.Setup.rois.files{n} = fullfile(strcat(RoiPath,'/', strrep(BATCH.Setup.rois.names(n),'.nii',''),strcat('_modified'),'.nii'));
end
BATCH.Setup.rois.dimensions = [1,1,1,1,1,1,1,1,1,1];
conn_batch(BATCH);
ERROR
Brace indexing is not supported for variables of this type.
Brace indexing is not supported for variables of this type.
Error in conn_batch (line 836)
if ~isfield(batch.Setup.rois,'dimensions')||length(batch.Setup.rois.dimensions) batch.Setup.rois.dimensions{n1}=1; end
Please help in troubleshooting.
I have two questions:
1. How to add the default ROIS using BATCH.
2. How to specify more MNI functional ROIS using BATCH.
I get the following error while using BATCH.setup for calling ROIS. I am trying to set up 10 ROIS for a group of 18 subjects. The ROIS are same for all subject and not subject specific.
CODE::
% Set Roi names
BATCH.Setup.rois.names = {'LSTG1.nii','LMFG1.nii','LPT.nii','LSTG2.nii','LMTG.nii','LITG.nii','LIFG_OP.nii','LIFG_Tri.nii','LMFG2.nii','LSFG.nii'};
% call .nii ROI Files
for n=1:numel(BATCH.Setup.rois.names)
BATCH.Setup.rois.files{n} = fullfile(strcat(RoiPath,'/', strrep(BATCH.Setup.rois.names(n),'.nii',''),strcat('_modified'),'.nii'));
end
BATCH.Setup.rois.dimensions = [1,1,1,1,1,1,1,1,1,1];
conn_batch(BATCH);
ERROR
Brace indexing is not supported for variables of this type.
Brace indexing is not supported for variables of this type.
Error in conn_batch (line 836)
if ~isfield(batch.Setup.rois,'dimensions')||length(batch.Setup.rois.dimensions) batch.Setup.rois.dimensions{n1}=1; end
Please help in troubleshooting.
