Last active
January 25, 2023 12:19
-
-
Save OmarAlkousa/9994ceebc978da81014169ccc147863b to your computer and use it in GitHub Desktop.
Built-in Electrocardiogram signal using scipy package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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