Home > vbmeg > demo > test_scripts > vb_test_meg_import.m

vb_test_meg_import

PURPOSE ^

Batch import MEG data

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Batch import MEG data 
  vb_job_import_meg_data(root_dir,meg_file)
    root_dir.raw  : Raw data file directory
    root_dir.data : MEG-mat file directory
    meg_file : MEG raw data file name
   pos_file : Positioning data path - absolute path

 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 % Batch import MEG data
0002 %  vb_job_import_meg_data(root_dir,meg_file)
0003 %    root_dir.raw  : Raw data file directory
0004 %    root_dir.data : MEG-mat file directory
0005 %    meg_file : MEG raw data file name
0006 %   pos_file : Positioning data path - absolute path
0007 %
0008 % Copyright (C) 2011, ATR All Rights Reserved.
0009 % License : New BSD License(see VBMEG_LICENSE.txt)
0010 
0011 vbmeg;
0012 
0013 data_no = 2;
0014 
0015 % Multiple files can be specified
0016 % --- Positioning data path - absolute path
0017 
0018 switch    data_no
0019 case    1
0020     root_dir.raw   = [getenv('MATHOME') '/Sekiyama'];
0021     root_dir.data  = [getenv('MATHOME') '/Sekiyama'];
0022     meg_file = {'AM090311a.con'};
0023     pos_file = {''};
0024     
0025 case    2
0026     root_dir.raw   = [getenv('MATHOME') '/NH_SEF/400ch'];
0027     root_dir.data  = [getenv('MATHOME') '/NH_SEF/400ch'];
0028     meg_file = {'NH080528c-SEF_R_1Hz.raw'};
0029     pos_file = {''};
0030     
0031 case    3
0032     root_dir.raw   = [getenv('MATHOME') '/NH_SEF/200ch'];
0033     root_dir.data  = [getenv('MATHOME') '/NH_SEF/200ch'];
0034     meg_file = {'NH070604a1000.raw'};
0035     pos_file  = {'marker2-coregis.pos.mat'};
0036 end
0037 
0038 
0039 Nfile = length(meg_file);
0040 
0041 for n=1:Nfile
0042     vb_job_import_meg_data(root_dir, meg_file{n}, pos_file{n});
0043 end

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