<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;">
<p>Dear all</p>
<p><br>
</p>
<p>I am fairly new to FieldTrip so apologies if this is a very basic question...</p>
<p><br>
</p>
<p>I am using ft_freqanalysis and wanted to obtain average power values in frequency bands rather than power values at particular frequencies. So, following the documentation online, I specified the following:</p>
<p><br>
</p>
<p></p>
<div>cfg = [];</div>
<div><span style="font-size: 12pt;">cfg.method = 'mtmfft'; </span><br>
</div>
<div>cfg.taper = 'hanning'; </div>
<div>cfg.foilim = [1 3];        % get power in delta range</div>
<div><span style="font-size: 12pt;">cfg.keeptrials = 'yes';</span><br>
</div>
<div>cfg.output = 'pow';</div>
<div>FFThann = ft_freqanalysis(cfg, data);</div>
<div><br>
</div>
<div>But the powspctrm field I get in FFThann gives power values for 0.5 Hz steps across the 1-3 Hz range, rather than a single average power value for the 1-3 Hz range. </div>
<div><br>
</div>
<div>I was wondering if I have specified something incorrectly? I've also tried adding "<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">cfg.avgoverfreq
 = 'yes';" but this doesn't change the output.</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Many thanks in advance</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Lizzie </span></div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255); margin:0px">
<p class="MsoNormal" style="margin-bottom:0.0001pt"></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">---------------------------------------------------------------------------</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">Lizzie Shephard, PhD</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">Postdoctoral researcher</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">2.21 MRC SGDP Centre</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">Institute of Psychiatry, Psychology, & Neuroscience</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">King’s College London</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">De Crespigny Park</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">London, SE5 8AF</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">0207 848 5272</span><span style="font-family:"Garamond","serif"; color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-family:"Garamond","serif"; color:#1F497D">elizabeth.1.shephard@kcl.ac.uk</span></p>
<br>
<p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>