Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KokeYao opened this issue Feb 21, 2017 · 3 comments
Open

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

KokeYao opened this issue Feb 21, 2017 · 3 comments

Comments

@KokeYao
Copy link

KokeYao commented Feb 21, 2017

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
Copy link

Alfahad commented Feb 21, 2017

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
Copy link
Author

KokeYao commented Feb 26, 2017

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
Copy link

fmhall commented Apr 18, 2019

Having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants