Made some modifications to xcorr across entire signal - in the hopes that it would increase precision.  In the example case - there were some issues with 2 channels, it was added as an option.
Made some modifications to xcorr across entire signal - in the hopes that it would increase precision.  In the example case - there were some issues with 2 channels, it was added as an option.

There was also a bug in the code which was fixed (incorrect variable use (ch for iCH)).

falkben/matlab_scripts_batlab