ucdavis / erplab

ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
http://erpinfo.org/erplab
267 stars 73 forks source link

Contra/ipsi assistant bin number check #114

Open andrewxstewart opened 5 years ago

andrewxstewart commented 5 years ago

There is a report of bin numbers in the contra/ipsi assistant tool being different from expectations and manual equation entry.

Let's check.

Report: Dear sir or madam,

I'm currently investigating selective attention, but I've found a strange thing when I tried to create contra/ipsi waveform. For example, I have 2 bins,

bin1-target on the left,129 epochs

bin2-target on the right,96 epochs.

When I use contra/ipsi assistant, it automatically creates

nbin1-target contra,98 epochs,

nbin2-target ipsi,203 epochs.

However, if I manually enter the equations, it will be

nbin1-target contra,225 epochs,

nbin2-target ipsi,225 epochs.

The only difference between the equation automatically created by the assistant and manually entered is that I didn't manually enter the first line as the assistant did, which is 'prepareContraIpsi'. I'm quit curious about the function of this command, and would like to know which calculation is correct.(I personally suppose nbin1 and nbin2 should have the same number of epochs). Sorry to bother you and many thanks!!