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...////
0 个评论
回答(1 个)
Tobias
2013-4-22
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 Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!