<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Matt,</p>
<p><br>
</p>
<p>Thank you for you reply Matt.  <br>
</p>
<p>I am working with ECoG. The tasks that participants have to perform is movements of hand and tongue, indicated by a visual stimuli.
<br>
</p>
<p>Five repetitions each motor task followed by a fixation cross on the screen and then the next motor task, in a random order.
<br>
</p>
<p>Resting state were recorded prior to the motor tasks during 5 minutes were participants has to look to a fixation cross and not perform any movement.</p>
<p>If you need any other information please let me know.</p>
<p>Thank you.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> fieldtrip-bounces@science.ru.nl <fieldtrip-bounces@science.ru.nl> en nombre de Matt Gerhold <matt.gerhold@gmail.com><br>
<b>Enviado:</b> lunes, 12 de diciembre de 2016 5:26<br>
<b>Para:</b> FieldTrip discussion list<br>
<b>Asunto:</b> Re: [FieldTrip] time-frequeny analysis task vs resting</font>
<div> </div>
</div>
<div>
<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" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<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>
</div>
</div>
</div>
</body>
</html>