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
92 stars 45 forks source link

rdann fails with an error if there are no annotation between N0 and N #157

Open jcbsv opened 6 years ago

jcbsv commented 6 years ago

rdann throws an error at line 188 if there are no annotations in between sample positions N0 and N.

The issue can be solved by testing for N == 0 after line 181.