Skip to content

Instantly share code, notes, and snippets.

@OmarAlkousa
Last active January 25, 2023 12:19
Show Gist options
  • Save OmarAlkousa/9994ceebc978da81014169ccc147863b to your computer and use it in GitHub Desktop.
Save OmarAlkousa/9994ceebc978da81014169ccc147863b to your computer and use it in GitHub Desktop.
Built-in Electrocardiogram signal using scipy package
# Import the required packages
from scipy.misc import electrocardiogram
import matplotlib.pyplot as plt
# Built-in ECG signal
ecg = electrocardiogram()
# Plot the results
plt.plot(ecg)
plt.xlim(0, 1000)
plt.xlabel('samples')
plt.ylabel('Voltage (mV)')
plt.title('ECG Signal')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment