Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
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.

Réponses (1)

Image Analyst
Image Analyst le 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 commentaires
Nishant Prakash
Nishant Prakash le 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 le 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by