<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Daniel,<div><br></div><div>there was a typo below. I meant </div><div><br></div><div><div><div><div><div><div>erp = mean(EEG.data,3);</div><div><br></div><div>Sorry about that,</div><div><br></div><div>Arno</div><div><br></div></div></div></div></div><div><div>On Sep 26, 2009, at 10:40 PM, Arnaud Delorme wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Daniel,<div><br><div><div><blockquote type="cite"><div>I have a further refinement on my question from yesterday.  When I do the following:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; ">figure; erp = pop_erpimage(EEG,1, [5],[],strsetname,4,1,{},[],<span style="color: #a020f0">''</span> , <span style="color: #a020f0">'yerplabel'</span>, <span style="color: #a020f0">'\muV'</span>, <span style="color: #a020f0">'erp'</span>, <span style="color: #a020f0">'on'</span>, <span style="color: #a020f0">'limits'</span>,[NaN NaN -25 25 NaN NaN NaN NaN] , <span style="color: #a020f0">'cbar'</span>, <span style="color: #a020f0">'on'</span>, <span style="color: #a020f0">'vert'</span>,[170 300] ,<span style="color: #a020f0">'topo'</span>, { [5] EEG.chanlocs EEG.chaninfo } );</div> <div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; "><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">The erp variable now contains a matrix of data with 43 columns.  Since the dataset contains 46 events, I was wondering what is contained within these 43 columns?  The numbers are close but short a few ...</span></font></div></div></blockquote><div><br></div><div><br></div><div>The size of the erp variable depends on the smoothing being applied to the dataset. For instance if you do smoothing of 5, then the first 2 and last 2 trials will be removed.</div><div>To compute the actual ERP, just do</div><div><br></div><div>erp = men(EEG.data,3)</div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br></div></div></div></div><span><ATT00001.txt></span></div></blockquote></div><br></div></body></html>