<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><div><br></div></div></div>
</div></div>