Dear Freesurfers,

I tried the following in matlab

[coords,faces]  =read_surf('\subject\surf\rh.orig')
 Hp = patch('vertices',coords,'faces',faces(:,[1 3 2]),...
 'facecolor',[.5 .5 .5],'edgecolor','none')
 camlight('headlight','infinite')
 vertnormals = get(Hp,'vertexnormals');

Matlab returns the following error:
Error using patch
Faces values must be >= 1.0

Indeed, there are 0's in faces. Is this a mistake?

Thank you very much!

Sincerely,
Ye