Skip to content

Commit 8e68360

Browse files
committed
Minor modification to read_ecgfile_v4.m in order to attend to issue #34.
1 parent ef5996b commit 8e68360

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

read_ecgfile_v4.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@
3939
line1 = fgetl(fid);
4040
line2 = fgetl(fid);
4141
line3 = fgetl(fid);
42-
if ~strcmpi(line3(1:2),'m1')
42+
libChars = {'m1' 'wc'};
43+
if ~strcmpi(line3(1:2),libChars)
4344
%then we may have another version of the ecgfile
4445
%try the next line
4546
line3 = fgetl(fid);
46-
if ~strcmpi(line3(1:2),'m1')
47+
if ~strcmpi(line3(1:2),libChars)
4748
error(['READ_ECGFILE: Could not read the file: "' filename '"'])
4849
end
4950
end

0 commit comments

Comments
 (0)