Hai i am new to matlab.how to divide a EEG signal into frames in matlab?

2 次查看(过去 30 天)
I am working on EEG signal processing.
How to do framing (eg., 5 sec) and overlapping (50%, hanning window) in EEG signal processing using MATLAB?
[Merged from duplicate]
How to do framing (eg., 5 sec) and overlapping (50%, hanning window) in EEG signal processing using MATLAB?
My specifications are:
Total no. of samples:6400; Total duration: 50secs; Sampling Frequency:128 Hz Total no. of samples is segmented into 10 segments.i.e., 6400/10=640
So, 640/128= 5sec duration (Each framing 5 secs duration)
After this i have to do overlapping *using *hanning window (50% overlap). Kindly help...////

回答(1 个)

Tobias
Tobias 2013-4-22
Did you look into the built-in Hann-function in matlab?
Overlapping should be possible by using the hold command, enabling you to create more than one plot in the same figure.
hold on
plot1
plot2
and so on
hold off
Framing can be done by specifying the values of your data that you want to process, for example:
EEG = [ 0.4 ; 0.5 ; 0.6 ; 0.7 ; 0.6 ; 0.5 ; 0.4 ]
EEG_peak = EEG(3:5,1)
EEG_peak = [0.6 ; 0.7 ; 0.6]
And there you have the data just around the peak in this very simple example. The syntax is: data(rows,columns) so the previous example is rows 3 through 5 in column 1.

类别

Help CenterFile Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by