<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>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_data);<br>
<br>
cfg.trials = find(epoch_data.trialinfo == 2);<br>
Task2Spec = ft_freqanalysis(cfg,epoch_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>
</body>
</html>