<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px"><div><span></span></div><div class="qtdSeparateBR" dir="ltr">I appreciate this, thanks James.  I have been careful about setting the memory option to hold only one dataset.  </div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1496317703571_3720" dir="ltr"><br></div><div class="qtdSeparateBR" dir="ltr">Yesterday I experimented with increasing the Java Heap Memory and while that seems to have helped a bit, its not enough of a change to make the full computation practical.  </div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1496317703571_3801" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1496317703571_3788" dir="ltr">At least during the Study>Plot Channel Measures processing, I see references to a very large array so I am intrigued by your suggestion of changing the way the results are accumulated. I'm not MATLAB-savvy and have just been depending on the EEGLAB gui, but will see if I can add your script; I think that might indeed help.</div><div class="qtdSeparateBR" dir="ltr"><br></div><div class="qtdSeparateBR" dir="ltr">Thanks again!</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1496317703571_3802" dir="ltr">Davida  <br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1496317703571_3330" style="display: block;">  <div id="yui_3_16_0_ym19_1_1496317703571_3329" style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1496317703571_3328" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1496317703571_3327" dir="ltr"> <font id="yui_3_16_0_ym19_1_1496317703571_3326" face="Arial" size="2"> <hr size="1" id="yui_3_16_0_ym19_1_1496317703571_3325"> <b><span style="font-weight:bold;">From:</span></b> James Jones-Rounds <jj324@cornell.edu><br> <b><span style="font-weight: bold;">To:</span></b> davida_s2000@yahoo.com; EEGLAB List <eeglablist@sccn.ucsd.edu>; robert coben <drcoben@gmail.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 30, 2017 3:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Eeglablist] speed of processing<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1496317703571_3352"><br><div id="yiv0361903833"><div id="yui_3_16_0_ym19_1_1496317703571_3351" dir="ltr">I've noticed these issues, sometimes, too. A couple things that have usually been the cause for me:<div id="yui_3_16_0_ym19_1_1496317703571_3361"><br></div><div id="yui_3_16_0_ym19_1_1496317703571_3362">1) If you're working with a STUDY, have you made sure your Memory options are set to hold just one dataset in memory at a time? You can select this option from the File > "Memory and other options" menu.</div><div id="yui_3_16_0_ym19_1_1496317703571_3363"><br></div><div id="yui_3_16_0_ym19_1_1496317703571_3359">2) Increase your MATLAB's Java Heap Memory to as much as you can (some other more savvy users out there might have some counter-recommendations about this). You can do this using the "Preferences > General > Java Heap Memory" menu option. You might need to restart MATLAB then for it to take effect.</div><div id="yui_3_16_0_ym19_1_1496317703571_3364"><br></div><div id="yui_3_16_0_ym19_1_1496317703571_3358">3) Are you accumulating your results in any self-inflating matrix or array? i.e.</div><div id="yui_3_16_0_ym19_1_1496317703571_3366"><br></div><div id="yui_3_16_0_ym19_1_1496317703571_3458"><font face="monospace, monospace">my_results = []</font></div><div id="yui_3_16_0_ym19_1_1496317703571_3459"><font face="monospace, monospace"><br></font></div><div id="yui_3_16_0_ym19_1_1496317703571_3372"><font id="yui_3_16_0_ym19_1_1496317703571_3371" face="monospace, monospace">for data_index = 1:length(my_datasets)</font></div><div id="yui_3_16_0_ym19_1_1496317703571_3357"><font face="monospace, monospace"><br></font></div><div id="yui_3_16_0_ym19_1_1496317703571_3356"><font id="yui_3_16_0_ym19_1_1496317703571_3355" face="monospace, monospace">       this_dataset_result = my_datasets{data_index}.results;</font></div><div id="yui_3_16_0_ym19_1_1496317703571_3354"><font id="yui_3_16_0_ym19_1_1496317703571_3353" face="monospace, monospace">       my_results = [my_results; this_dataset_result];</font></div><div id="yui_3_16_0_ym19_1_1496317703571_3350"><font face="monospace, monospace"><br></font></div><div id="yui_3_16_0_ym19_1_1496317703571_3375"><font face="monospace, monospace">end</font><br clear="all"><div><br></div><div>Sometimes, depending on how you do this, it can become excessively large and unweildy for your computer to continually store in memory.</div><div><br></div><div id="yui_3_16_0_ym19_1_1496317703571_3374">I've also rarely found that the RAM usage reports from MATLAB correlate with how hard it seems my computer is working, so I don't know if it makes sense to trust the output you're talking about.</div><div><br></div><div>Hope that helps,</div><div><br></div><div>James</div>-- <br><div class="yiv0361903833gmail_signature"><div dir="ltr"><div>James Jones-Rounds</div>Laboratory Manager<br>Human Development EEG and Psychophysiology (HEP) Laboratory,<div>Department of Human Development,<br>--------------------------------------------<br>Cornell University | Ithaca, NY<br></div><div>607-255-9883</div><div><a href="mailto:eeg@cornell.edu" target="_blank" rel="nofollow" ymailto="mailto:eeg@cornell.edu">eeg@cornell.edu</a></div></div></div>
</div></div></div><br><br></div> </div> </div>  </div></div></body></html>