Plot spectrogram (STFT):
= plot_spectrogram(eeg, ch=9, db=true)
p plot_save(p, file_name="images/eeg_spec1.png")
(!) To smooth the histogram, use smooth=true
option and
n
parameter (kernel size of the Gaussian blur; larger
kernel means more smoothing).
= plot_spectrogram(eeg, ch=9, db=true, smooth=true, n=5) p
Plot spectrogram (multi-taper):
= plot_spectrogram(eeg, ch=9, db=true, method=:mt)
p plot_save(p, file_name="images/eeg_spec6.png")
Plot spectrogram (Morlet wavelet):
= plot_spectrogram(eeg, ch=9, db=true, method=:mw)
p plot_save(p, file_name="images/eeg_spec3.png")
Plot spectrogram (Gauss-Morlet):
= plot_spectrogram(eeg, ch=9, method=:gh)
p plot_save(p, file_name="images/eeg_spec5.png")
Plot spectrogram (continuous wavelet transformation):
= plot_spectrogram(eeg, ch=9, method=:cwt, wt=wavelet(Morlet(6), β=2, Q=128))
p plot_save(p, file_name="images/eeg_spec2.png")
Plot multi-channel spectrogram:
= plot_spectrogram(eeg, ch=1:19, db=true, frq_lim=(0, 50))
p plot_save(p, file_name="images/eeg_spec4.png")