<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Erika,<div><br></div><div>yes this is correct. The newtimef function returns average power. However the last output of newtimef "tfdata" contains the spectral estimates for each trial (type "help newtimef" for more details). "tfdata" contains complex numbers though. To compute single trial power, you have to do <i>abs(tfdata).^2</i> or <i>tfdata.*conj(tfdata)</i>.</div><div><br></div><div>Best regards,</div><div><br></div><div>Arno</div><div><br><div><div>On Feb 25, 2011, at 8:01 AM, Erika Nyhus wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I have a dataset that I would like to look at power for each trial.  I have preprocessed the data and precomputed ERSP.  When I look at the precomputed channel erspdata it looks like it is giving me an averaged value for each condition across trials but I would like to look at each trial.  I was wondering if there is a way to extract for each trial: the condition, and a power value for a specified frequency and time after stimulus onset?  </span><br clear="all">


<br>-- <br>Erika Nyhus, Ph.D.<br>Cognitive, Linguistic, and Psychological Sciences<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>Brown University </div>229 Waterman St. <div>



<div>Providence, RI 02912-1821</div></div></span></div><br>
</blockquote></div><br></div></body></html>