[Eeglablist] right way to add sorttypes in study ERP image?

Arnaud Delorme arno at ucsd.edu
Mon Nov 25 22:20:31 PST 2013


Dear Mauricio,

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.

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.

Best,

Arno

On Nov 20, 2013, at 4:17 AM, Mauricio Aspé Sánchez <mauricio.aspe.s at gmail.com> wrote:

> Dear all,
> I cannot sort my ERP images by custom trials criteria in a Study.
> 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.
> 
> 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:
> 
> Error in eeg_getepochevent (line 87)
> if nargin < 2
> 
> Output argument "epochval" (and maybe others) not assigned during call to
> "/usr/local/matlab/2012b/toolbox/eeglab/functions/popfunc/eeg_getepochevent.m>eeg_getepochevent".
> 
> Error in std_erpimage (line 155)
>          events = eeg_getepochevent(EEG, 'type', opt.sorttype, 'timewin',
>          opt.sortwin, 'fieldname', opt.sortfield, 'trials', opt.trialindices);
> 
> Error in std_precomp (line 283)
>                 std_erpimage(ALLEEG(desset.dataset), 'channels', tmpchanlist,
>                 opts{:}, addopts{:}, tmpparams{:});
> 
> Could somebody shed me a light?
> 
> All the best,
> Mauricio.
> 
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20131125/c4c57db6/attachment.html>


More information about the eeglablist mailing list