%[QRSwave]=ECGwaveGen(bpm,dur,fs,amp) generates an artificial ECG/EKG waveform % Heart rate (bpm) sets the qrs event frequency (RR interval). % Duration of the entire waveform (dur) is in units of seconds. % Sample frequency (fs) sets the sample fre
% [s, ipeaks] = ecgsyn(sfecg,N,Anoise,hrmean,hrstd,lfhfratio,sfint,ti,ai,bi) % Produces synthetic ECG with the following outputs: % s: ECG (mV) % ipeaks: labels for PQRST peaks: P(1), Q(2), R(3), S(4), T(5) % A zero lablel is output otherwise ... us