Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
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.

Antworten (1)

Image Analyst
Image Analyst am 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 Kommentare
Nishant Prakash
Nishant Prakash am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu EEG/MEG/ECoG finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by