How to solve: Error using gifti/save Too many input arguments

Submitted by YAN Chao-Gan on

When you are using DPABISurf, you may encounter: 

Error using gifti/save
Too many input arguments.

Error in y_Write (line 73)
   save(Header,OutName,'Base64Binary','RowMajorOrder'); %YAN Chao-Gan, 221208. freesurfer needs 'RowMajorOrder' %save(Header,OutName,'Base64Binary');

This is because you need to use the developing version of SPM: https://github.com/spm/spm or use this alternative one. Please click the link to download: https://d.rnet.co/spm12_20230101YAN.zip