-
I have an ECG signal with a sampling frequency of 200Hz and a length of 5280000. After modifying the corresponding sampling frequency and variable name, an error was reported. Load NeuroKit and other useful packagesimport neurokit2 as nk 读取.mat文件ecg1 = loadmat('D:/signal/1.mat') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
seems like it's a scipy error rather than neurokit |
Beta Was this translation helpful? Give feedback.
I have resolved the issue. The error stemmed from the fact that my data is a two-dimensional array, whereas the input ECG data should actually be a one-dimensional array. Using "reshape" to convert it to a one-dimensional array solved the problem.