I've been trying to use the read_surf.m Matlab function included in the Matlab folder of 5.3.0 on a Mac under Matlab 2013a.
[vertex_coords, faces] = read_surf('fmcpr.sm5.fsaverage.lh.nii');
Undefined function or variable "vertex_coords".
Error in read_surf (line 77) vertex_coords = reshape(vertex_coords, 3, vnum)' ;
It looks as though the reason is that the "magic number" evaluates as:
6029568
which does not match either of the numbers it is looking for (which denote triangle and quad files).
Does that mean that current surface files have a different format and this function needs to be updated accordingly?
Anyway, is there some way I can load surface files into Matlab?
I looked through the fsfast Matlab functions but it wasn't clear to me if one of them would do.
The best candidate seemed to be fast_read_curv.m but it yielded too many numbers so I'm thinking a curvature file is something different.
Thanks!
Joe
--------------------------------------------------------------------------------
Joseph Dien, Senior Research Scientist University of Maryland
E-mail: jdien07@mac.com Phone: 202-297-8117 http://joedien.com//
Hi Joe, that is an overlay for a surface, not a surface itself. It just has a value for each vertex. A surface has geometry and neighborhood info. Try using MRIread.m instead. doug
On 7/14/13 3:57 PM, Joseph Dien wrote:
I've been trying to use the read_surf.m Matlab function included in the Matlab folder of 5.3.0 on a Mac under Matlab 2013a.
[vertex_coords, faces] = read_surf('fmcpr.sm5.fsaverage.lh.nii');
Undefined function or variable "vertex_coords".
Error in read_surf (line 77) vertex_coords = reshape(vertex_coords, 3, vnum)' ;
It looks as though the reason is that the "magic number" evaluates as:
6029568
which does not match either of the numbers it is looking for (which denote triangle and quad files).
Does that mean that current surface files have a different format and this function needs to be updated accordingly?
Anyway, is there some way I can load surface files into Matlab?
I looked through the fsfast Matlab functions but it wasn't clear to me if one of them would do.
The best candidate seemed to be fast_read_curv.m but it yielded too many numbers so I'm thinking a curvature file is something different.
Thanks!
Joe
Joseph Dien, Senior Research Scientist University of Maryland
E-mail: jdien07@mac.com mailto:jdien07@mac.com Phone: 202-297-8117 http://joedien.com//
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu