MATLAB IMPLEMENTATION OF THE PAN-TOMPKINS ALGORITHM Implementation in Matlab of the Pan-Tompkins algorithm for the detection of the QRS complex.