[color=#000000]Dear Pavan,[/color]
[color=#000000]Your script looks perfectly fine but CONN batch syntax expects cell arrays (instead of strings) in the list of filenames for each ROI, so I believe simply changing the lines that read:[/color]
grey = string(conn_dir('*_c1rs*.nii'));
white = string(conn_dir('*_c2rs*.nii'));
etc.
to:
grey = cellstr(conn_dir('*_c1rs*.nii'));
white = cellstr(conn_dir('*_c2rs*.nii'));
etc.
should do the trick.
Best
Alfonso
[i]Originally posted by Pavan Bains:[/i][quote]Dear Alfonso & the CONN community,
I am using batch code to conduct my analysis - my ROIs are subject-specific, but I don't know how to specify this in the script. My current script is attached. Any guidance would be greatly appreciated!
Kind Regards,
Pavan[/quote]
[color=#000000]Your script looks perfectly fine but CONN batch syntax expects cell arrays (instead of strings) in the list of filenames for each ROI, so I believe simply changing the lines that read:[/color]
grey = string(conn_dir('*_c1rs*.nii'));
white = string(conn_dir('*_c2rs*.nii'));
etc.
to:
grey = cellstr(conn_dir('*_c1rs*.nii'));
white = cellstr(conn_dir('*_c2rs*.nii'));
etc.
should do the trick.
Best
Alfonso
[i]Originally posted by Pavan Bains:[/i][quote]Dear Alfonso & the CONN community,
I am using batch code to conduct my analysis - my ROIs are subject-specific, but I don't know how to specify this in the script. My current script is attached. Any guidance would be greatly appreciated!
Kind Regards,
Pavan[/quote]