Home > vbmeg > demo > sample_scripts > test_job_meg.m

test_job_meg

PURPOSE ^

Test job_meg.m, a sample program of VBMEG

SYNOPSIS ^

function test_job_meg(proj_root,test_parm)

DESCRIPTION ^

 Test job_meg.m, a sample program of VBMEG

 [syntax]
 test_job_meg(proj_root,test_parm)

 [input]
 proj_root: <<string>> VBMEG project root directory. 
 test_parm: <<struct>> Test condition variables. 
 --- fields of test_parm
  data: <<string>> 'meg' for MEG data, 'eeg' for EEG data. 
 ---

 [output]
 MEG-MAT or EEG-MAT file. 

 [history]
 2010-06-28 Taku Yoshioka

 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 test_job_meg(proj_root,test_parm)
0002 % Test job_meg.m, a sample program of VBMEG
0003 %
0004 % [syntax]
0005 % test_job_meg(proj_root,test_parm)
0006 %
0007 % [input]
0008 % proj_root: <<string>> VBMEG project root directory.
0009 % test_parm: <<struct>> Test condition variables.
0010 % --- fields of test_parm
0011 %  data: <<string>> 'meg' for MEG data, 'eeg' for EEG data.
0012 % ---
0013 %
0014 % [output]
0015 % MEG-MAT or EEG-MAT file.
0016 %
0017 % [history]
0018 % 2010-06-28 Taku Yoshioka
0019 %
0020 % Copyright (C) 2011, ATR All Rights Reserved.
0021 % License : New BSD License(see VBMEG_LICENSE.txt)
0022 
0023 vb_disp('--- Start: test_job_meg');
0024 resultdir = './vbmeg_result/';
0025 
0026 %
0027 % Standard parameters
0028 %
0029 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0030 switch test_parm.data
0031  case 'meg', 
0032   dirname = 'vbmeg_testdata/Yokogawa/';
0033   meg_parm.Measurement   = 'MEG';
0034   meg_parm.device        = 'YOKOGAWA';
0035   meg_parm.yokogawa_file    = [dirname 'average/' ...
0036                       'sbj_test_HPF_LPF_BC-TriggerUR.ave'];
0037   meg_parm.pos_file         = [dirname 'marker1.pos.mat'];
0038   meg_parm.meg_file         = [resultdir 'sbj_test_UR.meg.mat'];
0039   meg_parm.saveman.data_dir = 'sbj_test_UR';
0040   meg_parm.saveman.precision = 'float64'; 
0041 end
0042 
0043 %
0044 % Optional parameters
0045 %
0046 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0047 switch test_parm.data
0048  case 'meg', 
0049   meg_parm.memory_max = 10000000;
0050   meg_parm.ext_ch_gain = [];
0051 end
0052 
0053 %
0054 % Execute vb_job_meg
0055 %
0056 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0057 vb_job_meg(proj_root,meg_parm);
0058 vb_disp('--- End  : test_job_meg');

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