0001 function [pick, Qpick] = sensor_center_neuromag(MEGid,U)
0002
0003
0004
0005
0006
0007
0008
0009
0010 if ischar(MEGid),
0011 switch MEGid
0012 case {'VV_PLANAR_T1','VV_PLANAR_T2','Neuromag-122'}
0013
0014 x = [ 0.0 , 0.0 , 0.0]*0.001;
0015 z = [ 0.0 , 0.0 , 1.0];
0016
0017 pick = [x, 1] * U(:,1:3);
0018 Qpick = [z] * U(1:3,1:3);
0019 otherwise
0020 pick = [];
0021 Qpick = [];
0022
0023 end
0024 else
0025 switch MEGid
0026 case {3012,3013,3022,3023,2}
0027 x = [ 0.0 , 0.0 , 0.0]*0.001;
0028 z = [ 0.0 , 0.0 , 1.0];
0029
0030 pick = [x, 1] * U(:,1:3);
0031 Qpick = [z] * U(1:3,1:3);
0032 otherwise
0033 pick = [];
0034 Qpick = [];
0035
0036 end
0037 end