MATLAB: How to remove or identify spikes in a random signal.

MATLABspikes identification and removal

I have signal from different RFID tags. I just want to remove the spikes occurs in the signal.
Data file and signal images is attached. I have to remove the highlighted spikes.
Thanks. spikes.png

Best Answer

Looking at your data, negative spikes you mentioned is always less than 1000. So, if this condition is applicable to other data, you can simply remove them by:
idx = t1(:,3) < 1000;
t1(idx,:) = [];
If you have to detect negative peaks with more complex conditions, I believe findpeaks function will be some help.
Related Question