<div dir="ltr"><div>What do your tasks entail? Can you provide more specific details regarding your experimental design? That will help clarify what the best analytical work-flow will be in your case.<br><br></div>Matt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 12, 2016 at 3:37 AM, Lorena Santamaria Covarrubias <span dir="ltr"><<a href="mailto:lorenalsc@hotmail.com" target="_blank">lorenalsc@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-1921113990688985757divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Good morning,</p>
<p><br>
</p>
<p>I am new in this topic and I have a basic question about baseline correction (ft_freqbaseline) when I am trying to study the time frequency analysis of task versus resting period.</p>
<p><br>
</p>
<p>I have two data-sets, one with the tasks information, 64 channels x 1s epoch x 100 trials (50 trials task1 and 50 trials task2)  and then 5 minutes of continuous recording for resting state.
<br>
</p>
<p>I obtained the power spectrum for both tasks:</p>
<p><br>
</p>
<p></p>
<div>cfg              = [];<br>
cfg.output = 'pow';<br>
cfg.method  = 'tfr';<br>
cfg.foi          =  8:1:130;<br>
cfg.toi          =  0.3:0.01:1.3;<br>
cfg.keeptrials   = 'no';<br>
<br>
cfg.trials = find(epoch_data.trialinfo == 1);<br>
Task<span>1</span>Spec= ft_freqanalysis(cfg,epoch_<wbr>data);<br>
<br>
cfg.trials = find(epoch_data.trialinfo == 2);<br>
Task2Spec = ft_freqanalysis(cfg,epoch_<wbr>data);<br>
</div>
<br>
<p>But now I don't know how to do the baseline correction with the 5 minutes continuous data to can compare the power spectrum of both tasks in relation to the resting state. </p>
<p>Maybe I missing something pretty basic, apologies in advance for it if this is the case.</p>
<p>Any suggestions will be appreciated.</p>
<p>Thanks!!<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
</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>