wfdb-app-toolbox
wfdb-app-toolbox copied to clipboard
RDSAMP index out of bound error
What steps will reproduce the problem?
[tm,signal]=rdsamp('s0010_re');size(signal)
What do you see instead?
Error using rdsamp (line 152)
Java exception occurred:
java.lang.ArrayIndexOutOfBoundsException
Please use labels and text to provide additional information.
Platform:
mac version 10.9.1 and matlab R2013a (8.1.0.604)
Original issue reported on code.google.com by [email protected]
on 21 Jan 2014 at 3:16
Reproducible in Linux with R2013b. Signals to reproduce the results can be
found in http://physionet.org/physiobank/database/ptbdb/patient001/.
Original comment by [email protected]
on 21 Jan 2014 at 3:37
As a work-around, reading individual signals from the record should work fine:
[tm,signal]=rdsamp('s0010_re',1);size(signal)
Original comment by [email protected]
on 21 Jan 2014 at 3:39
Also reproduced with:
[tm,signal]=rdsamp('mimic2wdb/matched/s32763/s32763-2724-06-08-16-49', [1:5] ,
5625000 , 4725000);
Original comment by [email protected]
on 31 Jan 2014 at 4:24
Reproducible in 0.9.6.1 with:
[tm,sig]=rdsamp('ptbdb/patient001/s0016lre',1);
Error using rdsamp (line 190)
Received: 115199 samples, expected: 115200
Original comment by [email protected]
on 27 Mar 2014 at 12:38