[Eeglablist] applying Hanning windows
Keith Yoder
kjyoder at gmail.com
Tue Nov 3 13:10:19 PST 2009
I just realized I replied to Krysta instead of the list:
If you just want to apply the window to an epoch, you can use the build in
MATLAB function HANN. Here's a simple example of how you might do that.
% sample code to apply and plot the the first epoch at the first channel
after applying a hanning window
% extract epoch 1 from channel 1
data = EEG.data(1,:,1);
% generate the hanning window
hwin = hann(length(data));
% apply the hanning window
hdata = data.*h';
% create a new figure an plot the hanning-windowed data
figure;
plot(hdata)
-Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20091103/7b76ceb6/attachment.html>
More information about the eeglablist
mailing list