Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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...////

Respuestas (1)

Tobias
Tobias el 22 de Abr. de 2013
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.

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by