Skip to content

Commit

Permalink
Minor modification to read_ecgfile_v4.m in order to attend to issue #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsewilliams committed Mar 29, 2021
1 parent ef5996b commit 8e68360
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions read_ecgfile_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
line1 = fgetl(fid);
line2 = fgetl(fid);
line3 = fgetl(fid);
if ~strcmpi(line3(1:2),'m1')
libChars = {'m1' 'wc'};
if ~strcmpi(line3(1:2),libChars)
%then we may have another version of the ecgfile
%try the next line
line3 = fgetl(fid);
if ~strcmpi(line3(1:2),'m1')
if ~strcmpi(line3(1:2),libChars)
error(['READ_ECGFILE: Could not read the file: "' filename '"'])
end
end
Expand Down

0 comments on commit 8e68360

Please sign in to comment.