<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Andrew,<div><br></div><div>the <i>erspdata</i> array in the call below </div><div><br></div><div><i>[STUDY erspdata ersptimes erspfreqs] = std_erspplot(STUDY,ALLEEG,'channels',{'Fp1'});</i></div><div><br></div><div>is a n x m cell array. n and m depend on your study design. To make it simple, create a very simple design with only 1 condition per subject (then n = 1 and m = 1) and erspdata will be a cell array of 1 x 1.</div><div><br></div><div>The array in erspdata is for example 50 x 200 x 10. 50 frequencies, 200 time points and 10 subjects/components. You may average the last dimension and export to a text file.</div><div><br></div><div><i><div style="font-style: normal; "><i>tmperspdata = mean(erspdata{1},3);</i></div><div style="font-style: normal; "><i>save -ascii myfile.txt tmperspdata</i></div><div><i><br></i></div></i></div><div>Alternatively, you might want to preserve the subject/component information, so in this case, you would transform the ERSP 2-D image into a 1-D vector</div><div><br></div><div><div><i>tmperspdata = reshape(erspdata{1},size(</i><i>erspdata{1},1)*size(</i><i>erspdata{1},2), size(</i><i>erspdata{1},3));</i></div><div><i>save -ascii myfile.txt tmperspdata</i></div></div><div><br></div><div>Hope this helps,</div><div><br></div><div>Arno</div><div><br><div><div>On Mar 19, 2012, at 2:26 PM, Andrew Hill wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Arno, and list.<div><br></div><div>I'm still chasing the elusive extraction of numerical ERSP data.  </div><div><br></div><div>I'm able to get the times and frequencies out per the example below, but my "erspdata" is a 3 * 4 array of [4-D Double] structures, e.g. session * group.  Is there a straightforward way to export a summary of these to facilitate import into Excel, SPSS, etc?  </div><div><br></div><div>I've been spoiled by how much I can do with EEGLab without stellar matlab skills; any advice here is welcome :)</div><div><br></div><div>Best,</div><div>andrew</div><div><br></div><div><br><div><div>On May 25, 2011, at 10:04 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 Andrew,<div><br></div><div>After plotting STUDY measures, look at the history </div><div><br></div><div><div><i>STUDY = std_erspplot(STUDY,ALLEEG,'channels',{'Fp1'});</i></div></div><div><br></div><div>Then add output to the command line call (look up the function help for more information)</div><div><br></div><div><div><i>[STUDY erspdata ersptimes erspfreqs] = std_erspplot(STUDY,ALLEEG,'channels',{'Fp1'});</i></div></div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On Apr 28, 2011, at 1:48 PM, Andrew Hill wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi folks,<br><br>Can anyone give me an example of how to get numerical data out of ERSP or spectral computations?<br><br>I've done a lot of "precompute channel measures" for STUDYs, but I'm not sure how to produce "numbers" instead of plots for ERSP, spectral, etc... <br><br>I do see the command window output that says "Add output variables to command line call in history to retrieve results" but an example or two would go a long way to helping this less-than-expert Matlab user.<br><br>Best,<br>Andrew<br><br><br>_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>