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).
I'm not sure if that works correctly for writing format 80 signals. y is signed 2's complement form whereas format 80 wfdb are byte offset form. Just a quick thought I'll check and close this later on.
count=fwrite(fid,y',['int' num2str(bit_res)],skip,machine_format);
I'm not sure if that works correctly for writing format 80 signals. y is signed 2's complement form whereas format 80 wfdb are byte offset form. Just a quick thought I'll check and close this later on.