1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
commit 7c6d09be25e01bf13112040da90a88dce3d69747
Author: Alois SCHLOEGL <alois.schloegl@ist.ac.at>
Date: Thu Jan 21 11:24:27 2021 +0100
fix issue eeglab#93 (https://github.com/sccn/eeglab/issues/93) as suggested by mantour
diff --git a/biosig4matlab/t200_FileAccess/edfannot2evt.m b/biosig4matlab/t200_FileAccess/edfannot2evt.m
index 365ce58..e6a8e70 100644
--- a/biosig4matlab/t200_FileAccess/edfannot2evt.m
+++ b/biosig4matlab/t200_FileAccess/edfannot2evt.m
@@ -88,7 +88,7 @@ if isfield(HDR,'EDFplus') && isfield(HDR.EDFplus,'ANNONS'),
ix = find(TYP < 256);
if any(ix),
- [HDR.EVENT.CodeDesc, CodeIndex, TYP(ix)] = unique(Desc(ix)');
+ [HDR.EVENT.CodeDesc, HDR.EVENT.CodeIndex, HDR.EVENT.TYP(ix)] = unique(Desc(ix)');
end;
%% TODO: use eventcodes.txt for predefined event types e.g. QRS->0x501
|