Dear Freesurfer-Experts,
I would like to create gifti-surfaces to use in matlab.
That's what I am doing so far (latest FS-Version):
mris_convert lh.white lh.white.gii
I then try to open it using the "gifti" command (g=gifti('file.gii')) (http://www.artefact.tk/software/matlab/gifti/)
however, I get an error message from matlab:
>>>>>
??? Attempt to reference field of non-structure array. Error in ==> gifti.subsref at 28 varargout{1} = this.data{j}.space.MatrixData; Error in ==> gifti.struct at 17 [values{i,:}] = subsref(this(:), substruct('.',names{i})); Error in ==> gifti.display at 17 eval([display_name ' = struct(this);']);
>>>>>>>>>
Am I missing something? Is there anything special with the .gii file form FS?
here is the surface file I created with mris_convert: http://we.tl/B2n4Ex6ifJ
I am able to open the gifti file with freeview. I also updated the gifti-toolbox in matlab to the latest version.
Any help is appreciated!