Back to the main page.
Bug 1543 - spike_crossx_matlab doesn't check for empty inputs
| Status | CLOSED FIXED |
| Reported | 2012-06-20 15:10:00 +0200 |
| Modified | 2019-08-10 11:56:53 +0200 |
| Product: | FieldTrip |
| Component: | spike |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Windows |
| Importance: | P3 minor |
| Assigned to: | Martin Vinck |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Joscha Schmiedt - 2012-06-20 15:10:58 +0200
??? Subscript indices must either be real positive integers or logicals. Error in ==> ft_spike_xcorr>spike_crossx_matlab at 393 tY(tY>(tX(end)-minLag)) = []; Error in ==> ft_spike_xcorr at 253 [x] = spike_crossx_matlab(ts2(:),ts1(:),cfg.binsize,nLags*2+1);
Martin Vinck - 2012-06-22 13:36:06 +0200
fixed this by checking for empty and then returning vector of zeros