Remove strong Noise in signal
3 次查看(过去 30 天)
显示 更早的评论
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!
2 个评论
KALYAN ACHARJYA
2019-4-20
Do you want to remove larger spike (amplitude) or clip its aplitude in certain range?
回答(1 个)
Image Analyst
2019-4-20
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);
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!