<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Mauricio,<div><br></div><div>you cannot use custom sorting in STUDY ERPimages. The reason is that the parameters you enter when precomputing STUDY ERPimages are applied to all datasets in your design. If you were to specify a custom sorting array, then all datasets would be sorted by the same array.</div><div><br></div><div>If you are using a regular event type, then check if you correctly used upper and lower case as event types are case sensitive. This might be the reason that the function below cannot find them. Also, all of the datasets in your current design should have the specified event types.</div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On Nov 20, 2013, at 4:17 AM, Mauricio Aspé Sánchez <<a href="mailto:mauricio.aspe.s@gmail.com">mauricio.aspe.s@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr"><div class="gmail_extra"><div dir="ltr">Dear all,</div><div dir="ltr">I cannot sort my ERP images by custom trials criteria in a Study.</div><div dir="ltr">I figure out that I have to add the fiels 'sortfield', 'MyField' and 'sorttype' 'MyType' in the precompute measures options, but it doesn't work for me.</div>
<div dir="ltr"><br></div><div>The sorttype works well with individual subjects or when I just use [] instead of 'MyType', but doesn't work in study. The error message is:</div><div><br></div><div><div><font color="#ff0000">Error in eeg_getepochevent (line 87)</font></div>
<div><font color="#ff0000">if nargin < 2</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000">Output argument "epochval" (and maybe others) not assigned during call to</font></div>
<div><font color="#ff0000">"/usr/local/matlab/2012b/toolbox/eeglab/functions/popfunc/eeg_getepochevent.m>eeg_getepochevent".</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000">Error in std_erpimage (line 155)</font></div>
<div><font color="#ff0000">         events = eeg_getepochevent(EEG, 'type', opt.sorttype, 'timewin',</font></div><div><font color="#ff0000">         opt.sortwin, 'fieldname', opt.sortfield, 'trials', opt.trialindices);</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000">Error in std_precomp (line 283)</font></div><div><font color="#ff0000">                std_erpimage(ALLEEG(desset.dataset), 'channels', tmpchanlist,</font></div>
<div><font color="#ff0000">                opts{:}, addopts{:}, tmpparams{:});</font></div></div><div><br></div><div>Could somebody shed me a light?</div><div><br></div><div>All the best,</div><div>Mauricio.</div><div dir="ltr">
<div><br></div></div>
</div></div>
_______________________________________________<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></blockquote></div><br></div></body></html>