ECG Signal Simulation and Analysis

This code demonstrates the implementation of ECG signal generation, noise addition, filtering, and heart rate calculation.

You are now following this Submission

This code simulates an ECG signal with a dynamic heart rate and adds baseline wander and noise to mimic a real-world ECG signal. The noisy signal is then filtered using a bandpass Butterworth filter to isolate the relevant frequency range. R-peaks are detected, and the heart rate (BPM) is calculated and displayed, along with ECG signal plots. This script can help users understand ECG signal processing and analyze heart rate variations over time.

Cite As

Ardavan Rahimian (2026). ECG Signal Simulation and Analysis (https://www.mathworks.com/matlabcentral/fileexchange/128844-ecg-signal-simulation-and-analysis), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: R wave detection in ECG

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0