Home > eeg > egis > data_utils > rereference.m

rereference

PURPOSE ^

SYNOPSIS ^

function ref_trialdata = rereference(trialdata)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ref_trialdata = rereference(trialdata)
0002 
0003 ref_trialdata = zeros(size(trialdata,1),size(trialdata,2) - 1);
0004 
0005 ref_trialdata = trialdata(:,1:size(trialdata,2) - 1);
0006 
0007 ref_signal = trialdata(:,size(trialdata,2))*ones(1,size(ref_trialdata,2));
0008 
0009 ref_trialdata = ref_trialdata - ref_signal;
0010

Generated on Sun 25-Aug-2019 04:00:39 by m2html © 2003