ikarosilva / wfdb-app-toolbox

The WFDB Toolbox for MATLAB/Octave is a collection of functions for reading, writing, and processing physiologic signals in the formats used by PhysioNet (see README for details).
http://physionet.org/physiotools/matlab/wfdb-app-matlab/
GNU General Public License v3.0
93 stars 46 forks source link

Can not run ann2rr.m to read RR intervals of chf2db #137

Open KokeYao opened 7 years ago

KokeYao commented 7 years ago

Hi, I am now working on using ann2rr.m to read RR intervals from all the annotation files of chf2db. My problem is that by using the same command, I could only get RR intervals of part of the chf2db annotations, such as chf201, chf202, chf207, chf209, etc. For example, if I wanna get the RR interval of No. chf209 and then I run the command ---[rr,tm]=ann2rr('chf2db/chf229','ecg');

I will get following result:

Index exceeds matrix dimensions.

Error in ann2rr (line 89) eval(['varargout{n}=' outputs{n} ';'])

The same result occurs when I want to get the RR interval of chf203, chf204, chf205 and so on.

My Matlab version is 2013a and I noticed it should be 2014a or later described in WFDB Toolbox for Matlab and Octave.

Will updating my Matlab version solve my problem? Or I need to do sth. else?

Thanks.

Alfahad commented 7 years ago

I'm not sure if this issue is due to your MATLAB version. I tried running the code but I wasn't able to reproduce your problem. What machine are you running your MATLAB on? also java ver?

KokeYao commented 7 years ago

Hi, Alfahad

I am sorry for my late reply.

I have run the same code successfully in a Matlab 2014a version in my classmate's computer. Just as the WFDB Toolbox for Matlab and Octave mentioned, I should run it in a high-version Matlab.

And my computer's system is a pirated Windows 7 system. Because, you know, in China, you can always find a pirated version of almost every software, of course, including my Matlab software.

Thanks for your time to run the code and best wishes.

fmhall commented 5 years ago

Having the same issue