MATLAB Answers

How to read .ecg file ?

27 views (last 30 days)
Sarah A
Sarah A on 6 Sep 2018
Commented: KSSV on 6 Sep 2018
Hello,
I need to use a database from this website:
in Matlab, they put the code and an example to test and I wrote these lines to call the function read_ishne put this error occur:
Error in read_ishne (line 11)
fid=fopen(fileName,'r');
Output argument "ishneHeader" (and maybe others) not assigned during call to "read_ishne".
Error in read (line 5)
[ishneHeader, ecgSig] = read_ishne(fileName, startOffset, length);
And this is my code to call the function:
pd = pwd;
fileName = [pd '1-300m.ecg\'];
startOffset =1;
length= 5;
[ishneHeader, ecgSig] = read_ishne(fileName, startOffset, length);
So please can anybody help me to read that file, regards.

  3 Comments

KALYAN ACHARJYA
KALYAN ACHARJYA on 6 Sep 2018
Have you check here?
Sarah A
Sarah A on 6 Sep 2018
This is different dimension, what I am looking for is (.ecg) files.
KSSV
KSSV on 6 Sep 2018
Attach one .ecg file with which you tried the code. You can go for a debug option and try to sort out the problem.

Sign in to comment.

Answers (0)


Translated by