break up filtered EMG data into epochs

2 vues (au cours des 30 derniers jours)
Group 1
Group 1 le 23 Oct 2020
Commenté : Ameer Hamza le 23 Oct 2020
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.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 23 Oct 2020
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);
  2 commentaires
Group 1
Group 1 le 23 Oct 2020
How can i plot it?
Ameer Hamza
Ameer Hamza le 23 Oct 2020
See plot() function.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by