Signal Processing EEG ECG
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154073/image.png)
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 件のコメント
Said BOUREZG
2016 年 2 月 5 日
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).
回答 (1 件)
Daniel M
2019 年 11 月 9 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!