Our indices are zero based, and matlab is one based. That is probably the problem Bruce
On Jun 18, 2014, at 1:09 PM, ye tian tianye730@gmail.com wrote:
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 _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer