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

remove_env_noise_meg

PURPOSE ^

Remove environmental noise from MEG data using reference sonsor data by temporal PCA

SYNOPSIS ^

function remove_env_noise_meg(p)

DESCRIPTION ^

 Remove environmental noise from MEG data using reference sonsor data by temporal PCA

 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 remove_env_noise_meg(p)
0002 % Remove environmental noise from MEG data using reference sonsor data by temporal PCA
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 for temporal PCA
0010 Twin_sec = [0.05 0.05];% sec
0011 smin = 1e-6;% Threshold for contribution ratio of PCA
0012 
0013 for file = 1:length(p.file_list)
0014     % Set input file
0015     meg_file = fullfile(p.proj_root, p.meg_dirname, p.load_dirname, [p.file_list{file} '.meg.mat']);
0016     
0017     % Set output file
0018     new_meg_file = fullfile(p.proj_root, p.meg_dirname, p.denoise_dirname, [p.file_list{file} '.meg.mat']);
0019     
0020     % Remove noise
0021     vb_megfile_remove_environmental_noise(meg_file, new_meg_file, Twin_sec, smin);
0022 end
0023 
0024

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