help > Dot indexing error in BATCH
Showing 1-3 of 3 posts
Mar 27, 2020 02:03 PM | Romke Hannema - McGill University
Dot indexing error in BATCH
To whom it may concern,
I am writing a script in MATLAB to run an analysis in CONN toolbox, using BATCH commands. In there, I set up some commands to do the appropriate preprocessing steps:
BATCH.Setup.Preprocessing.overwrite='No';
BATCH.Setup.Preprocessing.done=1;
BATCH.Setup.Preprocessing.voxelsize_anat=0.8;
BATCH.Setup.Preprocessing.voxelsize_func=2;
BATCH.Setup.Preprocessing.fwhm=6;
When I try to run this script on a small subset of my real dataset, I keep getting the following error:
"Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in Batch_all_subjects (line 46)
BATCH.Setup.Preprocessing.overwrite='No';"
If I then comment out line 46, the same error will repeat with the next line.
I do not understand why this error would appear at this line, as I'm not even defining variables in this line.
Any help would be much appreciated.
Kind regards,
Romke Hannema
I am writing a script in MATLAB to run an analysis in CONN toolbox, using BATCH commands. In there, I set up some commands to do the appropriate preprocessing steps:
BATCH.Setup.Preprocessing.overwrite='No';
BATCH.Setup.Preprocessing.done=1;
BATCH.Setup.Preprocessing.voxelsize_anat=0.8;
BATCH.Setup.Preprocessing.voxelsize_func=2;
BATCH.Setup.Preprocessing.fwhm=6;
When I try to run this script on a small subset of my real dataset, I keep getting the following error:
"Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in Batch_all_subjects (line 46)
BATCH.Setup.Preprocessing.overwrite='No';"
If I then comment out line 46, the same error will repeat with the next line.
I do not understand why this error would appear at this line, as I'm not even defining variables in this line.
Any help would be much appreciated.
Kind regards,
Romke Hannema
Mar 27, 2020 02:03 PM | Alfonso Nieto-Castanon - Boston University
RE: Dot indexing error in BATCH
Hi Romke
Could you please try adding the line:
clear BATCH;
at the beginning of your script? (the error is likely a mismatch between some previously defined BATCH variable and the one you are trying to define now)
Best
Alfonso
Originally posted by Romke Hannema:
Could you please try adding the line:
clear BATCH;
at the beginning of your script? (the error is likely a mismatch between some previously defined BATCH variable and the one you are trying to define now)
Best
Alfonso
Originally posted by Romke Hannema:
To whom it may concern,
I am writing a script in MATLAB to run an analysis in CONN toolbox, using BATCH commands. In there, I set up some commands to do the appropriate preprocessing steps:
BATCH.Setup.Preprocessing.overwrite='No';
BATCH.Setup.Preprocessing.done=1;
BATCH.Setup.Preprocessing.voxelsize_anat=0.8;
BATCH.Setup.Preprocessing.voxelsize_func=2;
BATCH.Setup.Preprocessing.fwhm=6;
When I try to run this script on a small subset of my real dataset, I keep getting the following error:
"Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in Batch_all_subjects (line 46)
BATCH.Setup.Preprocessing.overwrite='No';"
If I then comment out line 46, the same error will repeat with the next line.
I do not understand why this error would appear at this line, as I'm not even defining variables in this line.
Any help would be much appreciated.
Kind regards,
Romke Hannema
I am writing a script in MATLAB to run an analysis in CONN toolbox, using BATCH commands. In there, I set up some commands to do the appropriate preprocessing steps:
BATCH.Setup.Preprocessing.overwrite='No';
BATCH.Setup.Preprocessing.done=1;
BATCH.Setup.Preprocessing.voxelsize_anat=0.8;
BATCH.Setup.Preprocessing.voxelsize_func=2;
BATCH.Setup.Preprocessing.fwhm=6;
When I try to run this script on a small subset of my real dataset, I keep getting the following error:
"Unable to perform assignment because dot indexing is not supported for variables of this type.
Error in Batch_all_subjects (line 46)
BATCH.Setup.Preprocessing.overwrite='No';"
If I then comment out line 46, the same error will repeat with the next line.
I do not understand why this error would appear at this line, as I'm not even defining variables in this line.
Any help would be much appreciated.
Kind regards,
Romke Hannema
Mar 27, 2020 03:03 PM | Romke Hannema - McGill University
RE: Dot indexing error in BATCH
Dear Alfonso,
Your suggestion is a good one, and one I thought of before. However, I already had it added into my script at the beginning of the file, before I posted my message. Would it be of any help if I posted the full script?
Kind regards,
Romke Hannema
Your suggestion is a good one, and one I thought of before. However, I already had it added into my script at the beginning of the file, before I posted my message. Would it be of any help if I posted the full script?
Kind regards,
Romke Hannema