Home > vbmeg > functions > device > meg > preprocess > vb_megfile_remove_trial.m

vb_megfile_remove_trial

PURPOSE ^

Remove trials specified by ix_trial_remove from MEG data

SYNOPSIS ^

function vb_megfile_remove_trial(megfile,megfile_new,ix_trial_remove)

DESCRIPTION ^

 Remove trials specified by ix_trial_remove from MEG data

 --- Syntax
 vb_megfile_remove_trial(megfile,megfile_new,ix_trial_remove)

 2008-05-15 Taku Yoshioka
 2010-01-19 (Sako) replaced vb_load_meg_info with vb_load_measurement_info
 2010-01-26 (Sako) renamed

 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 vb_megfile_remove_trial(megfile,megfile_new,ix_trial_remove)
0002 % Remove trials specified by ix_trial_remove from MEG data
0003 %
0004 % --- Syntax
0005 % vb_megfile_remove_trial(megfile,megfile_new,ix_trial_remove)
0006 %
0007 % 2008-05-15 Taku Yoshioka
0008 % 2010-01-19 (Sako) replaced vb_load_meg_info with vb_load_measurement_info
0009 % 2010-01-26 (Sako) renamed
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 MEGinfo = vb_load_measurement_info(megfile);
0015 ActTrial = vb_info_get_active_trial(MEGinfo);
0016 ActTrial(ix_trial_remove) = false;
0017 
0018 update_spec.preprocess_parm.parm = [];
0019 update_spec.active_trial = ActTrial;
0020 vb_msrmnt_make_preprocessed_file(megfile,update_spec,megfile_new);
0021

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