This function sets meg_parm to measurement information. [USAGE] [meg_parm] = vb_meg_parm_set_measurement(<meg_parm>, <Measurement>, <device>); [IN] meg_parm : this meg_parm is added measurement fields. Measurement : Hardware type = 'MEG' : MEG = 'EEG' : EEG device : Device type = 'YOKOGAWA' : yokogawa = 'SBI' : shimadzu = 'BIOSEMI' : biosemi = 'BRAINAMP' : brainamp [OUT] meg_parm : meg_parm is added measurement fields. [NOTE] Measurement and device string are used in job_meg. When you decide the specification of the string, think with job_meg. Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [meg_parm] = vb_meg_parm_set_measurement(meg_parm, Measurement, device) 0002 % This function sets meg_parm to measurement information. 0003 % [USAGE] 0004 % [meg_parm] = vb_meg_parm_set_measurement(<meg_parm>, <Measurement>, <device>); 0005 % [IN] 0006 % meg_parm : this meg_parm is added measurement fields. 0007 % Measurement : Hardware type 0008 % = 'MEG' : MEG 0009 % = 'EEG' : EEG 0010 % device : Device type 0011 % = 'YOKOGAWA' : yokogawa 0012 % = 'SBI' : shimadzu 0013 % = 'BIOSEMI' : biosemi 0014 % = 'BRAINAMP' : brainamp 0015 % [OUT] 0016 % meg_parm : meg_parm is added measurement fields. 0017 % [NOTE] 0018 % Measurement and device string are used in job_meg. 0019 % When you decide the specification of the string, think with job_meg. 0020 % 0021 % Copyright (C) 2011, ATR All Rights Reserved. 0022 % License : New BSD License(see VBMEG_LICENSE.txt) 0023 0024 % 0025 % --- Previous check 0026 % 0027 if ~exist('meg_parm', 'var'), error('meg_parm is a required parameter.'); end 0028 if ~exist('Measurement', 'var') 0029 error('Measurement is a required parameter.'); 0030 end 0031 if ~exist('device', 'var') 0032 error('device is a required parameter.'); 0033 end 0034 0035 % 0036 % --- Main Procedure 0037 % 0038 if isempty(meg_parm) 0039 meg_parm = struct; 0040 end 0041 meg_parm.Measurement = Measurement; 0042 meg_parm.device = device; 0043 0044 % 0045 % --- After check 0046 % 0047 if nargout ~= 1 0048 error('function caller should receive meg_parm.'); 0049 end