我在阅读脑电信号方面有问题
整个信号为:t=4s Fs=250,16路,变量格式用
mat_contents = sio.loadmat(mat_fileName)
您可以在图片中看到下面的变量
问题是我什么时候想做这件事
raw = mne.io.RawArray(mat_contents['measuredSignal'], info_for_plot)
如果info_for_plot
是mne.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);
目前没有回答
相关问题 更多 >
编程相关推荐