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 46 forks source link

wrann.m does not offset chan number back to 0-based indexing #172

Open particlewizard opened 5 years ago

particlewizard commented 5 years ago

rdann.m adds 1 to chan number, to comply with Matlab's 1-based indexing, but wrann.m does not subtract 1 to revert back to 0-based indexing.

A fix could be to modify line 145 of wrann.m: chan = num2chararray(chan-1, 'chan', N);