addpath /home/gari/CODE/MATLAB/WFDB_tools/
addpath /home/gari/CODE/MATLAB/IO
addpath /home/gari/CODE/MATLAB/MODELS/ECGSYN/
[s, ipeaks] = ecgsyn(256,64);
data=s*500;
recName = 'ecgsynTest';  Fs = 256;
leadDesc = 'V5'; baseTime = '00:00:00 01/03/2005';
chk = dat2wfdb(data, recName, Fs, leadDesc, baseTime);


