Skip to content

Commit

Permalink
BUGFUX: Bugfixed ParseSpikeList.m
Browse files Browse the repository at this point in the history
Bugfixed the <= EndTime bug and made it < EndTime to conform to the
requirement of retrurning spikes excluding the end time
  • Loading branch information
maharjun committed Jun 11, 2016
1 parent f2f6c7e commit 8f83b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TimeDelNetSim/MatlabSource/ParseSpikeList.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
GenerationTimeVect = ArrivalTimeVect - double(SpikeDelayVect);

% Filtering according to GenerationTimeVect
SpikeSynIndVect = SpikeSynIndVect (GenerationTimeVect >= BegTime & GenerationTimeVect <= EndTime);
GenerationTimeVect = GenerationTimeVect(GenerationTimeVect >= BegTime & GenerationTimeVect <= EndTime);
SpikeSynIndVect = SpikeSynIndVect (GenerationTimeVect >= BegTime & GenerationTimeVect < EndTime);
GenerationTimeVect = GenerationTimeVect(GenerationTimeVect >= BegTime & GenerationTimeVect < EndTime);

% Sorting Spikes by (GenerationTime, SpikeSynInd)
[~, sortinds] = sortrows([GenerationTimeVect, SpikeSynIndVect]);
Expand Down

0 comments on commit 8f83b59

Please sign in to comment.