Home > vbmeg > demo > tutorial_for_vbmeg2 > advanced > import_meg.m

import_meg

PURPOSE ^

Import MEG data

SYNOPSIS ^

function import_meg(p)

DESCRIPTION ^

 Import MEG data

 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 import_meg(p)
0002 % Import MEG data
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 disp(mfilename);
0008 
0009 % Set parameters
0010 meg_parm = vb_set_yokogawa_meg_parm;
0011 
0012 for file = 1:length(p.file_list)
0013     % Set input file
0014     meg_parm.yokogawa_file = fullfile(p.raw_data_root, 'MEG', [p.file_list{file} '.con']);
0015     meg_parm.pos_file = fullfile(p.raw_data_root, 'MEG', 'positioning', [p.file_list{file} '.pos.mat']);
0016     
0017     % Set output file (relative path from proj_root)
0018     meg_parm.meg_file = fullfile(p.meg_dirname, p.load_dirname, [p.file_list{file} '.meg.mat']);
0019     meg_parm.saveman.data_dir = ['./' p.file_list{file}];
0020     
0021     % Import MEG
0022     vb_job_meg(p.proj_root, meg_parm)
0023 end
0024 
0025

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