<div dir="ltr">Dear all,<br><br>I am now working on the MEG data in 4D format. Since it was collected in DC, so I want to first use a bandpass filter [0.1 80] to filter my data. However, I found that the latter part of averaged results drifted away relative to the results when no filter or only a low-pass filter is used (see the attached Fig.1). I thought it may be related to the end effect, so I used cfg.padding=1, it didn't work. Latter I turned to use cfg.padding=10 (1/.1=10) it works and no obvious drift was found. <br>
<br>However, when tried to only apply a high pass filter to the raw data, regardless of using cfg.padding=10, the results always showed a square wave (see Fig.2). And there is a warning:"Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 6.669292e-17."I don't understand why this happened. Does anybody know what is the problem with it? How can I get a right result in this case? Thank you very much.<br>
<br>The script I used:<br>----------------------------------------------------<br>cfg=[];<br>cfg.dataset ='c,rfDC';<br>cfg.trialdef.eventtype = 'TRIGGER';<br>cfg.trialdef.eventvalue =42; <br>cfg.trialdef.prestim = 1;<br>
cfg.trialdef.poststim = 1.5;<br>cfg.trialdef.offset = 1;<br>cfg.trialfun = 'mytrialfun';<br>cfg = definetrial(cfg);<br><br>%for band pass<br>%cfg.bpfilter='yes';<br>%cfg.bpfreq=[0.1 80];<br>
<br>%padding<br>cfg.padding=10;<br><br>%for hp filter<br>cfg.hpfilter='yes'; %high pass filter<br>cfg.hpfreq=0.1; %cutoff<br><br>cfg.blc = 'yes'; %baseline correct<br>cfg.blcwindow = [-0.30 -0.10];<br>
cfg.channel={'MEG'};<br>[data] = preprocessing(cfg);<br>--------------------------------<br><br>Best,<br>Feng<br><br><br><br> </div>
<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>