<div><div dir="auto">Hi Diana,</div><div dir="auto"><br></div><div dir="auto">That is what you would expect given your wavelet settings.</div><div dir="auto">The "strange" cutting off of your low frequencies is due to the length of the wavelet combined with the length of your trial.</div><div dir="auto">Only frequencies for which your wavelet fits into your trial will be computed.</div><div dir="auto"><br></div><div dir="auto">For example, 7 cycles at 1 Hz will need 7s of data to compute, 7 cycles at 10 Hz will need 0.7s.</div><div dir="auto"><br></div><div dir="auto">Play around with the cfg.width setting to see the effect of different taper sizes.</div><div dir="auto"><br></div><div dir="auto">Good luck,</div><div dir="auto"><br></div><div dir="auto">Julian</div><div dir="auto"><br></div><br><div class="gmail_quote"><div>- Диана <<a href="mailto:diana-hime@yandex.ru">diana-hime@yandex.ru</a>> schrieb am So. 20. Mai 2018 um 17:11:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">Hello!</span></font></div><div> </div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">My name is Diana. Currently I'm triyng to do a wavelet analysis of my data, which is 128 (129 with reference elctrode) EEG recording. </span></font></div><div> </div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">The problem is thatthe result looks strangely - the low frequencies are cut off. Can't understand the reason for this, and should it be this way or it not. Would be happy with any help)</span></font></div><div> </div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">The script I use:</span></font></div><div> </div><div><div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">%preprocessing</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">cfg = [];</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">cfg.dataset = FileName;</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">cfg.continuous = 'yes'; %считываем файл как непрерывный</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">data_preproc = ft_preprocessing(cfg);</span></font></div><div> </div><div> </div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">% deftrial</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg = [];</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.dataset = FileName;</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.trialdef.eventtype = 'trigger';</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.trialdef.eventvalue = 'tim0'; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.trialdef.prestim = 0.2; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.trialdef.poststim = 2.2; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg_deftrial = ft_definetrial(cfg);</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">data_deftrialed = ft_redefinetrial(cfg_deftrial, data_preproc);</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal">%wavelet</span></font></div><div> </div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg = [];</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.channel = 'all'; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.method = 'wavelet';</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.width = 7; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.output = 'pow'; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.foi = 1:1:45; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> cfg.toi = 1:0.01:2; </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> TFRwave = ft_freqanalysis(cfg, data_deftrialed);</span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> </span></font></div><div><font face="arial, sans-serif"><span style="font-size:15px;white-space:normal"> The wavelet I get:</span></font></div><div> </div><div> </div></div><img src="cid:1637e1c488ee06b286d1" style="width:560px;max-width:100%"></div><div> </div><div> </div><div> </div><div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255)">Thanks in advance, Diana.</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255)">Undergraduate Student</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255)">Department of Biology of MSU</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255)"> </div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255)">P.S: Sorry for my english this time...</div></div>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote></div></div>