The recording of the electrical activity associated with the functioning of the heart is known as Electrocardiogram. ECG is quasi-periodical,…