[Eeglablist] FFT Spectrogram

Alan Velander alanvelander at gmail.com
Tue May 11 13:19:35 PDT 2021

Dear list members,

I am a new user of EEGLAB and MATLAB, and this is my first post. I am a
clinical neurologist who is researching quantitative EEG measures in
critical care patients. I have used packages like Persyst in the past, and
I am trying to learn more about how Persyst calculates different measures.

Currently, I am trying to reproduce an FFT Spectrogram of an averaged
signal from the Left Hemisphere and an averaged signal from the Right
Hemisphere. Attached is an example.

I preprocessed the 256 Hz EEG file as recommended in the tutorial. EEG is
then an array with 21 channels (19 EEG, 8 right, 8 left, 3 center, and 2

I created an average signal of each hemisphere and a spectrogram of those
average signals.



I then used the spectrogram function to plot the power spectral densities
of Av_L and Av_R. I wanted a window of 30 s, used the default noverlap,
evaluated the entire interval of the EEG, sampled at 256 Hz, and changed
frequency to the y axis with limits on the c and y axes.

spectrogram(EEG.data(22,:),(30*256),[],313856,256,'yaxis'); caxis([0
20]);ylim([0 20]); colormap jet

spectrogram(EEG.data(23,:),(30*256),[],313856,256,'yaxis'); caxis([0
20]);ylim([0 20]); colormap jet

Am I on the right track? Is there some special feature or toolbox of EEGLAB
that would make this entire process easier? Is the average of each channel
from the right and left hemisphere just an average, or is there a more
complicated way to combine the data? Can the power scale be changed from
dB/Hz to uv^2/Hz or sqrt(uV)/Hz?

Again, I apologize if these are newbie questions, and I appreciate any help
you can provide.


Alan Velander, MD
alanvelander at gmail.com

More information about the eeglablist mailing list