Untitled

 avatar
unknown
plain_text
a year ago
430 B
3
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()
Leave a Comment