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

4 vues (au cours des 30 derniers jours)
Yuvaraj
Yuvaraj le 22 Avr 2013
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...////

Réponses (1)

Tobias
Tobias le 22 Avr 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.

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by