I am trying to compute LGI index using freesurfer. However i got the following error message:
Improper assignment with rectangular empty matrix.
Error in dsearchn (line 79)
[d(i),t(i)] = min(sum((x-yi).^2,2));
Error in mesh_vertex_nearest (line 29)
nearestIndex = dsearchn(vertices,points);
Error in reorganize_verticeslist (line 28)
[nextindex,nextvalue]=mesh_vertex_nearest(mesh_total.vertices(remaininglist,:),mesh_total.vertices(verticeslist(start_vertex),:));
Error in make_roi_paths (line 93)
reorglist = reorganize_verticeslist (mesh_total, A, mesh_outer, perim, verticeslist, step);
Following is the information of my system:
Linux distribution: Linux bass-comp1.cs.unc.edu 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
SUBJECTS_DIR: /home/user_name/software/freesurfer/subjects
Current working directory: /server_name/user_name/data/Surface/
Command used: recon-all -s subj_folder -localGI
Matlab version: R2013b (8.2.0.701) 64-bit (glnxa64)
I suspect this error is caused by the Matlab and i have tried the method described in https://mail.nmr.mgh.harvard.edu/pipermail//freesurfer/2013-July/032203.html to solve it. Unfortunately, i doesn't work for me.
Any suggestions to solve it?
Thanks,
wee