In this study, a mathematical model is developed based on algebraic equations which is capable of generating artificially normal events of electrocardiogram (ECG) signals such as P-wave, QRS complex, and T-wave. This model can also be implemented for the simulation of abnormal phenomena of electrocardiographic signals such as ST-segment episodes (i.e. depression, elevation, and sloped ascending...