Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
430 B
2
Indexable
Never
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