Bastian,
Hi, I've posted a new mris_convert which should solve the problem for you. It's built for Centos 6, so if you need it for another platform, let me know. It's here:
ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/misc/linux-centos6_x86_64/
Nick
On Wed, 2014-05-28 at 11:42 +0200, Bastian Cheng wrote:
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! _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer