<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div apple-content-edited="true">
<div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Dear Noa,</div><div><br></div><div>you should use frequency smoothening to achieve this. For example, a configuration of cfg.foilim = [20 20] ; and cfg.tapsmofrq = 10; will allow you to estimate sources in the 10 to 30 Hz band. </div></div></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="rtl"><div dir="ltr" style="text-align:left">Hi all,<br><font size="2"><br></font></div><div dir="ltr" style="text-align:left"><font size="2">I'm doing source analysis in the frequency domain of a resting-state data.<br> when doing the source analysis, I want to use several frequency bands of interest, such as beta (13-30 Hz) and gamma (30-48 Hz).<br></font></div><div dir="ltr" style="text-align:left"><font size="2">My problem is about the cfg.frequency parameter, which must be a scalar (whereas i'm interested in a </font><font size="2">frequency band). Arbitrarily choosing a frequency in the middle of the range doesn't seem right.</font><br><br></div><div dir="ltr" style="text-align:left">What is the common practice when doing source analysis using this function?<br></div></div></blockquote>You could evaluate this tutorial:</div><div><a href="http://www.fieldtriptoolbox.org/tutorial/beamformer">http://www.fieldtriptoolbox.org/tutorial/beamformer</a></div><div><br><blockquote type="cite"><div dir="rtl"><div dir="ltr" style="text-align:left">Does the cfg.tapsmofrq parameter is supposed to enable choosing frequency band instead of a single peak frequency?<br></div></div></blockquote>and some detailed explanation in a pictorial form here: </div><div><a href="https://www.youtube.com/watch?v=7eS11DtbIPw">https://www.youtube.com/watch?v=7eS11DtbIPw</a></div><div><br></div><div>best</div><div>tzvetan</div><div><br><blockquote type="cite"><div dir="rtl"><div dir="ltr" style="text-align:left"><br></div><div dir="ltr" style="text-align:left">Any suggestions will be very much helpful!<br><br></div><div dir="ltr" style="text-align:left">Thanks,<br></div><div dir="ltr" style="text-align:left">Noa<i><br></i></div><div style="text-align:left"><br><br></div><div dir="ltr" style="text-align:left"><i>This is the script I’m using:<br><br>    cfg = [];<br>    cfg.method ='mtmfft';<br>    cfg.output ='fourier';<br>    cfg.keeptapers = 'yes';<br>    cfg.foilim = [30 48];<br>    cfg.tapsmofrq = 2; <br>    freqClosed=ft_freqanalysis(cfg,eyesClosed);<br>    <br><br></i></div><div style="text-align:left"><br></div><div dir="ltr" style="text-align:left">    cfg            = [];<br></div><div dir="ltr" style="text-align:left">    cfg.method='pcc';<br></div><div dir="ltr" style="text-align:left">    cfg.frequency  = 39; % must be a scalar<br>    cfg.lambda     = 0;<br>    cfg.vol        = vol;<br>    cfg.grid       = grid;<br>    cfg.feedback   = 'textbar';<br>    cfg.keepfilter='yes';<br>    source1         = ft_sourceanalysis(cfg, freqClosed);<br></div><div style="text-align:left"><br><br>-- <br></div><div style="text-align:left;margin-left:40px" class="gmail_signature"><div dir="rtl"><div dir="ltr">My signature:<br></div></div></div><div style="text-align:left;margin-left:40px" class="gmail_signature"><div dir="rtl"><br><a href="http://www.documentarywire.com/earthlings/" target="_blank">http://www.documentarywire.com/earthlings/</a></div></div>
</div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></body></html>