Abstract: In recent decade, ECG signal plays an important role in the prognosis, diagnosis and survival analysis of cardiac diseases. Electrocardiography (ECG) has profound influence on the practice of medicine. The electrocardiogram signal contains important informationís that can be exploited in various manners. The ECG signal allows the analysis of anatomic and physiologic aspects of the whole cardiac system. This research paper proposes an algorithm for analysis of ECG signals for detecting various cardiac diseases .Different ECG signals are used to test the proposed method using MATLAB software.

Keywords: ECG (Electrocardiogram), MATLAB, Cardiac Patients, Critical Diseases, Diagnosis.