External Email - Use Caution
I'm trying to make a surface file from a subject's head and to map coordinates to that surface. If I run:
and then load lh.seghead in FreeView, it looks as I would expect. Clicking anywhere near a vertex gives the typical output, showing the closest vertex. All fine and well. However, if I load the file in Matlab:
vCoord=read_surf('$SUBJECTS_DIR/$sub/surf/lh.seghead');
my values are nothing near what I'm seeing in Freeview. For example, FreeView reports:
vertex 234741 [-78.50,14.50,26.50]
read_surf reports: