フィルターのクリア

Finding the amplitude of different segments of a signal and rejecting the segments with amplitude higher than a particular threshold

4 ビュー (過去 30 日間)
I have an EEG signal and i have segmented them into segments of 1 second interval. I want to calculate the amplitude of each segment and then reject those segments that have very high amplitude (higher than a particular threshold). I want to know how to calculate the amplitude of each segment.

回答 (1 件)

Image Analyst
Image Analyst 2014 年 1 月 19 日
Not sure how you define "segment" but if it's simply being greater than some threshold, you can do this
threshold = 128; % or whatever...
segmentsToReject = eeg_signal > threshold; % Can also use < if you want.
Now, I'm not sure what you mean by "reject," but if you simple want to remove those elements, do this:
eeg_signal(segmentsToReject) = []; % Setting to null removes the elements.
  2 件のコメント
Nishant Prakash
Nishant Prakash 2014 年 1 月 19 日
it is not at all related to image processing. Segments means i am taking each 1 second duration of signal to work with.
Image Analyst
Image Analyst 2014 年 1 月 20 日
But a 1 second "segment" may be 50 or 100 elements, each having a different "amplitude". So how are you defining "very high amplitude" when you have 50 or 100 different values? Are you taking the mean value? The peak value? You have to specify because I can't read your mind.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by