how to divide an EEG signal into segments

15 次查看(过去 30 天)
Hello, I have an EEG signal of 124s (of extension .m and length (x) = 20000) that I want to divide into segments of specific length (in s), I have the moment of the beginning and the end of each desired segment in seconds.

回答(2 个)

Star Strider
Star Strider 2017-11-22
编辑:Star Strider 2022-11-1
See if the Signal Processing Toolbox buffer (link) function will do what you want.
EDIT — (1 Nov 2022 at 11:50)
The most basic buffer function can be emulated by this —
function M = bufr(s,r)
% Star Strider's Emulation Of The Basic 'buffer' Function - 2021/09/17
% s = Signal Vector
% r = Desired number of rows
M = zeros(r,ceil(numel(s)/r));
M(1:numel(s)) = s;
end

malik hussain
malik hussain 2019-10-30
Hello. If you get the code, please share with me @malik_waqar84@yahoo.com
  3 个评论
456!👊
456!👊 2021-3-6
did u received the code? if yes, please send for me, Thank u =)
m44b.moghadam@gmail.com
Faryal Raees
Faryal Raees 2022-11-1
Hi can you send me the code for the above mentioned problem, if in case you recieved it? Thanking you in anticipation

请先登录,再进行评论。

类别

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