wfdb-app-toolbox icon indicating copy to clipboard operation
wfdb-app-toolbox copied to clipboard

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

Open KokeYao opened this issue 8 years ago • 3 comments

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.

KokeYao avatar Feb 21 '17 16:02 KokeYao

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?

Alfahad avatar Feb 21 '17 19:02 Alfahad

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.

KokeYao avatar Feb 26 '17 13:02 KokeYao

Having the same issue

fmhall avatar Apr 18 '19 04:04 fmhall