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

import_eeg

PURPOSE ^

Construct brain model

SYNOPSIS ^

function import_eeg(p)

DESCRIPTION ^

 Construct brain model

 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_eeg(p)
0002 % Construct brain model
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 eeg_parm = vb_set_meg_parm_brainamp;
0011 
0012 for file = 1:length(p.file_list)
0013     % Set input file
0014     eeg_parm.measurement_file = fullfile(p.raw_data_root, 'EEG', [p.file_list{file} '.eeg']);
0015     eeg_parm.pos_file = fullfile(p.raw_data_root, 'EEG', 'positioning', [p.sub '.pos.mat']);
0016     
0017     % Set output file (relative path from proj_root)
0018     eeg_parm.output_file = fullfile(p.eeg_dirname, p.load_dirname, [p.file_list{file} '.eeg.mat']);
0019 
0020     % Import EEG
0021     vb_job_meg(p.proj_root, eeg_parm)
0022 end
0023 
0024 
0025 
0026

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