Skip to content

Commit

Permalink
Bug3299 (fieldtrip#598)
Browse files Browse the repository at this point in the history
* ENH - changed some lines to prevent crash, let Roemer think about whether this is now resulting in desired behavior

* FIX - removed a call to find, which did not make sense, see bug3299
  • Loading branch information
schoffelen authored Nov 28, 2017
1 parent 41b15a6 commit 22faafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/spike/ft_spike_waveform.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

% reject the ones that do not have a rising potential to the peak index
mnOverLead = nanmean(waves,1);% do this for all four leads at the same time
d = find(squeeze(nansum(diff(mnOverLead(:,1:iup,:),[],2),2)));
d = squeeze(nansum(diff(mnOverLead(:,1:iup,:),[],2),2));
rm1 = find(d<0);

% these have a later max than min: reject, this removes late peaks.
Expand Down

0 comments on commit 22faafc

Please sign in to comment.