fInding the tresholhd of signal noise(really long narrow spikes).
3 views (last 30 days)
Show older comments
rami zaboura
on 17 Aug 2020
Commented: Star Strider
on 18 Aug 2020
Hi,
i have an input EEG signal , i need to filter the data , which means that i need to remove the noise that is the really long narrow spikes, this is how the signal looks:
as you can see there are almost 12 events (large narrow spikes) - and by using the findpeaks function i get almost 2000 pks, which means that i get also the low maximum points, how can i find only the maximum/minimum points of the large spikes or atleast how do find the treshold of for example the lowest line and then plot what's under it?
thanks in advance:)![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/347205/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/347205/image.png)
0 Comments
Accepted Answer
Star Strider
on 17 Aug 2020
The findpeaks function has a number of name-value pair agruments that can customise its behaviour to give the desired results. One option here is to use 'MinPeakProminencce', and, 'MinPeakHeight' alone or together.
Use findpeaks twice, once on the data vector to get the positive peaks, and once on the negative of the data vector to get the negative peaks. Make the appropriate corrections to get the actual peak amplitudes of the negative peaks, if necessary.
7 Comments
Star Strider
on 18 Aug 2020
You will have to make that determination, since only you have access to all the signals you will be analysing.
More Answers (0)
See Also
Categories
Find more on Parametric Spectral Estimation 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!