I tested even with old versions of Matlab, the folder from the .tar works.
Your error comes from something specific to your system, and needs to be debugged locally.
- Make sure you don't have any parasite shadowing MATLAB functions in the path: Edit the Matlab path, remove ALL the folders that are not related with the Matlab installation. Save the path, restart Matlab.
- If you are working on a network or external drive, copy the freesurfer folder to an internal hard drive (in a folder
C:\Users\username\Documents\RawData\SavBen1\) - Put a breakpoint in import_anatomy_fs.m at line 122, then run the import with the menu "Import anatomy folder". When the debugger stops, type
FsDirandfile_find(FsDir, 'T1.mgz', 2)in the Matlab command window and copy-paste the result here. - "Step in" to explore what is happening in
find_file. If you've never used the Matlab debugger, it's a good time to learn how to use this super useful tool