help > Attempt to execute SCRIPT conn_surf_gii2nii as a function
Jun 11, 2021  03:06 PM | Walker Pedersen
Attempt to execute SCRIPT conn_surf_gii2nii as a function
I am trying to convert some gifti files from fmriprep to nifti.  When I run the command:

conn_surf_gii2nii('/path/to/file/lh.file.gii')

or the command:

conn_surf_gii2nii('/path/to/file/lh.file.gii','/path/to/file/rh.file.gii','/path/to/file/output.nii')

I get the error:

Attempt to execute SCRIPT conn_surf_gii2nii as a function:
/path/to/conn/conn20b/conn/conn_surf_gii2nii.m

I am new to conn and matlab, so I initially though it may be a general problem with my setup, but I was able to run:

conn_gz2nii('/path/to/file/file.nii.gz')

After some googling I ran the command:

which -all 'conn_surf_gii2nii'

and got the output:

/path/to/conn/conn20b/conn/conn_surf_gii2nii.m

so I don't seem to have any extra files with the same name messing things up.

How do I get conn_surf_gii2nii to run?

Thanks!

Threaded View

TitleAuthorDate
Attempt to execute SCRIPT conn_surf_gii2nii as a function
Walker Pedersen Jun 11, 2021
Walker Pedersen Jun 15, 2021
Alfonso Nieto-Castanon Jun 11, 2021