<div dir="ltr">Hi Diana,<div><br></div><div>This is because your time points of interest are close to the boundaries of the original time series, as described here: </div><div><a href="http://www.fieldtriptoolbox.org/faq/why_does_my_tfr_contain_nans">http://www.fieldtriptoolbox.org/faq/why_does_my_tfr_contain_nans</a></div><div><br></div><div>You may want to include more data from your original time series (at call to ft_definetrial / ft_preprocessing) or use smaller spectral windows / fewer wavelet cycles (at ft_frequencyanalysis, spectral resolution permitting).</div><div><br></div><div>Best regards,</div><div>Arjen</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 20, 2018 at 8:08 AM, - Диана <span dir="ltr"><<a href="mailto:diana-hime@yandex.ru" target="_blank">diana-hime@yandex.ru</a>></span> wrote:<br><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:5Ri3efcKWgO8*DqdZdrapOzFxFnVJjGgoBsImbuvnWjTJKBGN6l*qHFELGHMFk2Ynux3Uc0eVZt9zG2bHWcV0N549Igc6LNk*VsKpGmkPNo9PIlp0eXG6s2K4LidVyrn"></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>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">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/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>