break up filtered EMG data into epochs
4 ビュー (過去 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 で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!