Hello everybody,
I am using the "write_curv" matlab code posted by Doug Greve on 01/10/2003 to convert a curvature vector back into freesurfer .curv format, using the following syntax in matlab:
write_curv('lh.curv',myvector,facenumber);
and when I try to launch mris_glm --meas curv --hemi lh ..., I get the following reading curvature error:
MRISreadNewCurvature: vals/vertex 3 unsupported (must be 1)
... However, I am sure that my vector has the size "verticesnumber x 1", and I also thought that the line 23 of write_curv "fwrite(fid, 1, 'int32');" will anyway assign only one value per vertex.
Could anyone help me? Many thanks,
Marie Schaer