Hello together, <br><br>I want to compute the common average reference for an ecog dataset. But I have to exlude some of the channels due to epileptic activity. <br>I am currenlty using the code below. Do I have to specify the channels I would like to include in my CAR in cfg.channels or in cfg.refchannel?<br>
<br>Thanks a lot<br>Martin<br><br>cfg=[];<br>cfg.trackconfig='cleanup';<br><br>%compute common average reference<br>cfg.channels=ch_in_avref;<br>cfg.reref='yes';<br>cfg.refchannel='all';<br><br>%filter out the line noise using bandstop filter<br>
cfg.bsfilter='yes';<br>cfg.bsfiltord=3;<br>cfg.bsfreq=[49.5 50.5; 99.5, 100.5];<br><br><br>data=preprocessing(cfg,data);<br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>