Home > vbmeg > functions > tool_box > neuromag > sensor_center_neuromag.m

sensor_center_neuromag

PURPOSE ^

center position of Vectorview type 1 planar gradiometer

SYNOPSIS ^

function [pick, Qpick] = sensor_center_neuromag(MEGid,U)

DESCRIPTION ^

 center position of Vectorview type 1 planar gradiometer

 Masa-aki Sato 2009-4-13

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    [pick, Qpick] = sensor_center_neuromag(MEGid,U)
0002 % center position of Vectorview type 1 planar gradiometer
0003 %
0004 % Masa-aki Sato 2009-4-13
0005 %
0006 % Copyright (C) 2011, ATR All Rights Reserved.
0007 % License : New BSD License(see VBMEG_LICENSE.txt)
0008 
0009 %fprintf('MEGid=')
0010 if ischar(MEGid),
0011     switch    MEGid
0012     case    {'VV_PLANAR_T1','VV_PLANAR_T2','Neuromag-122'}
0013         % center position
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     %    fprintf('\n')
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     %    fprintf('\n')
0036     end
0037 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005