Signal Processing EEG ECG

1 visualizzazione (ultimi 30 giorni)
Efren Lema
Efren Lema il 4 Feb 2016
Risposto: Daniel M il 9 Nov 2019
Greetings, I have a signal as shown in the graph and want to remove the part B of the signal and to unite in a new vector Part A and C.
I had problems with dimenciones vector A and C.
Any suggestions ...?
  1 Commento
Said BOUREZG
Said BOUREZG il 5 Feb 2016
Do u want to remove the part B of the signal and to unite in a new vector Part A and C automatically or according to the image (data given on image).

Accedi per commentare.

Risposte (1)

Daniel M
Daniel M il 9 Nov 2019
One method would be to use a moving RMS calculation over a small time window. You should know what a reasonable rms value is (based on the characteristic amplitude and frequency of your signal). Use movmean:
movrms = sqrt(movmean(yourvector .^ 2, nWindowLength));
where nWindowLength is the number of elements to include in your window. When movrms crosses some threshold mark it for deletion until it goes back under that threshold. It would probably help to run it through a lowpass filter first.

Categorie

Scopri di più su EEG/MEG/ECoG in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by