<div dir="ltr">Dear David,<div><br></div><div>Sorry for the slow response.</div><div><br></div><div><p class="MsoNormal"><span lang="EN-US">> for s=1:numel(CURRENTSET)</span></p><p class="MsoNormal"><span lang="EN-US">eeg_countepochs(ALLEEG(1, s), 'eventtype')</span></p><p class="MsoNormal"><span lang="EN-US">end</span></p></div><div class="gmail_extra"><br></div><div class="gmail_extra">I've never used that function. Basically it's size(EEG.data,3). You know that.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><p class="MsoNormal"><span lang="EN-US">> So, what am I doing wrong here?</span><span lang="EN-US" style="font-family:'Times New Roman',serif"></span></p><p class="MsoNormal"><br></p><p class="MsoNormal">Hmm... I have no idea. I personally don't use this option, so unfortunately not with much experience.</p><p class="MsoNormal"><br></p><p class="MsoNormal">std_erpimage() is a relatively new function, supported just a few years ago. Maybe that's why it's not so robust?</p><p class="MsoNormal"><br></p><p class="MsoNormal">Please file the problems (you can actually copy and paste this email) to eeglab bugzilla</p><p class="MsoNormal"><a href="https://sccn.ucsd.edu/bugzilla/">https://sccn.ucsd.edu/bugzilla/</a><br></p><p class="MsoNormal">Thank you for your patience and cooperation.</p><p class="MsoNormal"><br></p><p class="MsoNormal">Makoto</p><p class="MsoNormal"><br></p></div><div class="gmail_extra"><div class="gmail_quote">On Mon, May 25, 2015 at 12:55 PM, david grahms <span dir="ltr"><<a href="mailto:david.grahms@gmail.com" target="_blank">david.grahms@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">

<p class="MsoNormal"><span lang="EN-US">Hello</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p>

<p class="MsoNormal"><span lang="EN-US">I have a problem
calculating the Study erp image.</span></p>

<p class="MsoNormal"><span lang="EN-US">To find the
maximum number of lines to use for a specific condition, I run: </span></p>

<p class="MsoNormal"><span lang="EN-US">for
s=1:numel(CURRENTSET)</span></p>

<p class="MsoNormal"><span lang="EN-US">eeg_countepochs(ALLEEG(1,
s), 'eventtype')</span></p>

<p class="MsoNormal"><span lang="EN-US">end </span></p>

<p class="MsoNormal"><span lang="EN-US">I find that
I have a minimum of 56 trials in the specific condition. To be able to
precompute the erpimage for some reason I have to reduce that to 54 lines. I
phase sort and it computes fine and plotting works. I rerun the precompute and reduce
the number of lines to 40 and add smoothing factor of 10 to the data. It computes
fine, but I’m unable to plot due to:</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p>

<p class="MsoNormal"><span lang="EN-US">EEGLAB
error in function std_readfile() at line 257:</span></p>

<p class="MsoNormal"><span lang="EN-US">Subscripted
assignment dimension mismatch</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">I have
reduced number of lines to 30 and 20 and it is still the same. </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Also, when
I add the option to ‘concatenate’ nothing happens. There is some activation on
the processors for a second and then nothing. Matlab just prompts a new line. The
concatenate changes to ‘on’ in </span><span lang="EN-US">STUDY.etc.erpimparams. If I try to plot I get:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">EEGLAB error in function std_erpimageplot() at line 52:</span></p>

<p class="MsoNormal"><span lang="EN-US">Reference to non-existing field ‘statistics’</span></p>

<p class="MsoNormal"><span style="font-family:'Times New Roman',serif" lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">So, what am
I doing wrong here?</span><span style="font-family:'Times New Roman',serif" lang="EN-US"></span></p>

<p class="MsoNormal"><span lang="EN-US">This is what
I use (and with ‘concatenate’ ‘on’, and no smoothing):</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p>

<p class="MsoNormal"><span lang="EN-US">std_precomp(STUDY,
ALLEEG, 'components', 'recompute', 'on', 'erpim', 'on', 'erpimparams', {'nlines'
40 'smoothing' 10 'phasesort' [0 0 4 40 180]})</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Thank you<br></span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

</div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>