Sorry about that, here is the whole correspondance:
Hi Doug,
I used mkheadsurf function.
Meryem
Hi freesurfer community,
I am trying to get faces and vertices of the head surface mesh in Matlab. freesurfer_read_surf works perfectly when I extract faces and vertices for the pial surface (from lh.pial), but I get an "unknown magic number in surface file" error when I use the same function for lh.seghead (which I assume is the head surface?).
Any help on what I am doing wrong?
Thanks!
Meryem