Untitled
unknown
plain_text
2 years ago
430 B
8
Indexable
import wfdb
import matplotlib.pyplot as plt
# Assuming you want to visualize 100001_PPG.dat
record_path = `home/researchgroup/mahjabeen_workspace/research/butppg/physionet.org/files/butppg/1.0.0/RECORDS/100001/100001_ECG`
record = wfdb.rdrecord('100001_PPG', sampfrom=0, channels=[0])
# Plotting the PPG signal
plt.plot(record.p_signal)
plt.title('PPG Signal')
plt.xlabel('Sample')
plt.ylabel('Amplitude')
plt.show()Editor is loading...
Leave a Comment