break up filtered EMG data into epochs
5 次查看(过去 30 天)
显示 更早的评论
hello,
I have a filtered EMG signal that i have to break up into 1.5s epochs so i could apply a periodogram function. But i am not sure how to break it up with a simple command.
0 个评论
采纳的回答
Ameer Hamza
2020-10-23
Try something like this
t = linspace(0, 10, 1000);
eeg_signal = rand(size(t)); % eeg-signal
grps = ceil((t+eps).'/1.5);
eeg_split = splitapply(@(x,y) {[x, y]}, t(:), eeg_signal(:), grps);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!