I'm new to python, how we can plot an ECG signal from a .mat file in python?
Code:
import matplotlib.pyplot as plt
import ecg_plot
import scipy.io as sio
import numpy as np
from scipy.misc import electrocardiogram
ecg=sio.loadmat('/content/hc001.mat')
print(ecg)
Answer:
{'val': array([[ 21, 22, 24, ..., 236, 174, 84]], dtype=int16)}
