Remove strong Noise in signal
3 views (last 30 days)
Show older comments
Hello,
I am thinking if is possible to remove a very strong noise in a signal that i recorded. The idea is to remove the noise from the files and only plot the signal (like in the first five spikes). Is it possible to locate only the major spikes and so remove it? Other problem is that sometimes the minor spikes happens in the same times than major spikes (this happens in the 6th spike). Follow the data attached. I will appreciate any help. Thanks!
![noisy.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/214982/noisy.jpeg)
2 Comments
KALYAN ACHARJYA
on 20 Apr 2019
Do you want to remove larger spike (amplitude) or clip its aplitude in certain range?
Answers (1)
Image Analyst
on 20 Apr 2019
Try this:
% Get threshold based on first 5 points. It should be bigger than the tallest of those, say by 10% or whatever
threshold = max(signal(1:5)) * 1.10;
% Get "good" indexes - those with signal values less than the threshold.
goodIndexes = signal < threshold;
filteredSignal = signal(goodIndexes);
See Also
Categories
Find more on AI for Signals in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!