Electrocardiography (ECG) is the process by which the electrical activities of heart are recorded using electrodes placed on the skin. ECG is often used to detect problems in heart.
The depolarization and repolarization in atria and ventricles are detected represented by three types of waves in ECG. The P wave represents the depolarization and repolarization of atria, the QRS complex represents the depolarization of ventricles and the T wave represents the repolarization of ventricles.