<div dir="ltr">Hi All,<div><br></div><div>I am doing an IAF-based analysis that requires me to extract average power (or PSD) within frequency bands (e.g., alpha, beta) for subsequent comparison. This means that I need an estimate in the form of a single number for the whole range of frequencies subsumed within each frequency band</div><div><br></div><div>My code when processing my data using ft_freqanalysis is as follows:</div><div><br></div><div>    cfg =[];<br>    cfg.method = 'mtmfft';<br>    cfg.output = 'pow';<br>    cfg.taper = 'hanning';<br>    cfg.channel = 'all';<br>    cfg.foilim = [lowerlim upperlim];   %of the band of interest <br>    cfg.trials = 'all';<br>    cfg.keeptrials = 'no';<br>    freq = ft_freqanalysis(cfg_band, data_segmented);</div><div><br></div><div>The resulting output is a struct containing a 2D matrix (powspctrm) with the dimensions of 36 frequencies (in this case ranging from 12.5 to 30, counting by .5) and 73 channels, with each cell containing a power estimate.<br clear="all"><div><br></div><div>My questions are:</div><div>1) What are the units of what is contained in each cell, using the "pow" output option? Are my units mV2 (power) or mV2/Hz (PSD)?</div><div><br></div><div>2) What is the most appropriate way to go from these frequency-wise estimates to an estimate of band power (e.g., alpha power or beta power)? If the units are in PSD, my understanding is that it would be appropriate to take the simple mathematical average to calculate power within the band. If they are in mV2, I am  unclear what the appropriate approach would be. Using the bandpower function in matlab? Or does FieldTrip have a built in function to calculate power within a band that I am somehow not finding?</div><div><br></div><div>Thanks in advance for your help,</div><div>Alea</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px"><font color="#0b5394">Alea C. Skwara, M.A.</font></span><div><div style="font-size:12.8px"><font color="#0b5394">PhD Candidate </font><font color="#f1c232">|</font><font color="#bf9000"> </font><font color="#0b5394">Saron Lab </font></div><div><font color="#f1c232"><font color="#f1c232"><a href="http://saronlab.ucdavis.edu/" target="_blank">http://saronlab.ucdavis.edu/</a></font></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font color="#0b5394" style="font-size:12.8px">Center for Mind and Brain</font><font color="#f1c232" style="font-size:12.8px"> | </font><span style="font-size:12.8px;color:rgb(11,83,148)">University of California, Davis</span><font color="#0b5394"><br></font></div><div style="font-size:12.8px"><font color="#0b5394">267 Cousteau Place </font><font color="#f1c232">|</font><font color="#0b5394"> Davis CA 95616</font></div><div style="font-size:12.8px"><font color="#0b5394">Cell:</font><font color="#f1c232"> (828) 273-8595</font></div><div style="font-size:12.8px"><blockquote type="cite" style="font-size:12.8px"><div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif"><p></p><font color="#860908"><p></p><p></p><p></p></font><p></p><font color="#860908"></font><p></p></div></blockquote></div></div></blockquote></div><div style="font-size:12.8px"><span style="color:rgb(11,83,148);font-size:12.8px">Pronouns: She/Her/Hers</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div>