This document describes an ECG simulator created in MATLAB. It uses Fourier series analysis to generate the typical waves that make up an ECG signal, including the P, Q, R, S and T waves. The simulator allows the user to input heart rate and amplitude/duration values for each wave. Code files implement functions to generate the individual waves based on Fourier series, which are then summed to produce the full ECG waveform. The output provides a simulated normal lead II ECG signal.