绘制脑电信号引发的问题

2024-09-30 04:41:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我在阅读脑电信号方面有问题

整个信号为:t=4s Fs=250,16路,变量格式用

mat_contents = sio.loadmat(mat_fileName)
         

您可以在图片中看到下面的变量

问题是我什么时候想做这件事

raw = mne.io.RawArray(mat_contents['measuredSignal'], info_for_plot)

如果info_for_plotmne.create_info(ch_names, Fs)
我能正确地绘制通道 但是
raw.plot_psd(fmin=2, fmax=90, average=True)说:picks (NoneNone, treated as "data") yielded no channels, consider passing picks explicitly
为了在频域中绘制结果,我需要将info_for_plot定义为mne.create_info(ch_names, sfreq, ch_types='eeg')

但问题是当我{}通道重叠太多时,我只能看到线。我不知道怎么修,有人能帮我吗

mat_fname = pjoin(data_dir, fineName)
mat_contents = sio.loadmat(mat_fname)

info_for_plot = mne.create_info(ch_names, sfreq) 
raw_for_plot = mne.io.RawArray(mat_contents['measuredSignal'], info_for_plot)
raw_for_plot.plot()

info = mne.create_info(ch_names, sfreq, ch_types='eeg') # See [docs] 
raw = mne.io.RawArray(mat_contents['measuredSignal'], info)
#raw.pick('CP3')
raw.plot_psd(fmin=2, fmax=90, average=True);

read .mat file


Tags: ioinfoforrawnamesplotcreatecontents

热门问题