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

8 views (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 19 Jan 2014
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 Comments
Nishant Prakash
Nishant Prakash on 19 Jan 2014
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 on 20 Jan 2014
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.

Sign in to comment.

Categories

Find more on EEG/MEG/ECoG in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!