0001 function [XYZ] = freesurfer_xyz2crs(CRS) 0002 0003 0004 T = [ -1 0 0 128; 0005 0 0 -1 -128; 0006 0 -1 0 128; 0007 0 0 0 1 ]; 0008 0009 0010 one = ones(size(CRS,1),1); 0011 0012 CRS = [CRS';one']'; 0013