Try downloading https://gate.nmr.mgh.harvard.edu/safelinks/greve/freesurfer_read_surf.m
and copying it to $FREESURFER/matlab


On 8/10/2020 8:47 PM, Lab of Autism and Developmental Neuroscience, Lab of Autism and Developmental Neuroscience wrote:

        External Email - Use Caution        

Dear Freesurfer experts,

Hope you are all safe and well. I changed the version of the matlab that I was using (from 2020a to 2019b) and most errors that I was having were fixed after running the LGI command. The only issue that I'm still having is the following (see below) - does anyone know how I could fix this? Thank you!  


                            < M A T L A B (R) >

                  Copyright 1984-2019 The MathWorks, Inc.

              R2019b Update 6 (9.7.0.1434023) 64-bit (maci64)

                               July 15, 2020


 

For online documentation, see https://www.mathworks.com/support

For product information, visit www.mathworks.com.

 

>> Warning: Argument must be a string scalar or character vector. 

> In ver (line 45)

  In freesurfer_read_surf (line 70)

  In find_corresponding_center_FSformat (line 26) 

Error using fprintf

Function is not defined for 'struct' inputs.


Error in freesurfer_read_surf (line 70)

fprintf('FREESURFER_READ_SURF [v %s]\n',ver(11:15));


Error in find_corresponding_center_FSformat (line 26)

[mesh_pial.vertices, mesh_pial.faces] = freesurfer_read_surf(pial);

 

>> 

ERROR: find_corresponding_center_FSformat did not complete successfully!


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer