spikes icon indicating copy to clipboard operation
spikes copied to clipboard

Bug? in getWaveForms.m

Open chenhongbiao opened this issue 1 year ago • 0 comments

Hi, thanks for this useful toolbox. When I tried to get waveforms by using getWaveForms.m with input like gwfparams.spikeTimes = [2,3,5,7,8,9], it only returned one spike.

I check the code inside, and think it maybe better to replace line50 curUnitnSpikes = size(curSpikeTimes,1); with curUnitnSpikes = numel(curSpikeTimes); . So it will not assume the input spikeTimes is a column vector.

chenhongbiao avatar Jun 17 '23 13:06 chenhongbiao