Skip to content

Commit

Permalink
git-svn-id: svn://localhost/opt/svn/adastra/trunk@819 2e6fb361-edd7-4…
Browse files Browse the repository at this point in the history
…11f-8dd4-0c094a991339
  • Loading branch information
toncho11@gmail.com committed Feb 18, 2014
1 parent 53460f6 commit 98a3014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src_matlab/GazeEegLabImporter/GazeEegLabImporter_BuildEpoch.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function GazeEegLabImporter_BuildEpoch(varargin)

for k = 1:NbNewEpochs

time1 = NewEpochs(1,k); %in ms - start time of the epoch
time2 = NewEpochs(2,k); %in ms - end time of the epoch
time1 = NewEpochs(1,k); %start time of the current epoch (in ms)
time2 = NewEpochs(2,k); %end time of the current epoch (in ms)

%first convert to seconds (/1000), then to points
%(*EegAcq.Data.Params.samplingRate)
Expand Down Expand Up @@ -165,7 +165,7 @@ function GazeEegLabImporter_BuildEpoch(varargin)
%[0 EEG.pnts * epochNumber]. Time of the event is relative to the
%epoch, but increased with the time of the previous epochs before the
%current. This gives an increasing value for each event.
latency = (k-1) * EEG.pnts + eventPntsRelativeToEpochStart; % the correct position of the event, so that later is visualzed correctly relative to its epoch
latency = (k-1) * EEG.pnts + eventPntsRelativeToEpochStart; % the correct position of the event, so that later it is visualzed correctly relative to its epoch

eventIndex = eventIndex + 1;
EEG.event(eventIndex).latency = latency;
Expand Down

0 comments on commit 98a3014

Please sign in to comment.