I have a dataset of accelerometric data that is affected by electical spikes.
I\'m looking for a good method to filter out or reduce these spikes as need to calcula
I have used the file despiking from the matlab central file exchange with very good effect for similar problems, though I see you've tried that as well.
Another approach I've taken is to treat the spikes as statistical outliers and removed them using this function which uses Rosner's many outlier test. (NIST site is down for obvious reasons, so here is the Google cached version)
Edited to add: I was mistaken. My despiking algorithm did not come from the file exchange function I linked to above. It was actually pulled out of a journal article (the code is listed in the supplementary information to the paper, but they didn't publish the code to the file exchange). The paper was:
Practical Methods for Noise Removal: Applications to Spikes, Nonstationary Quasi-Periodic Noise, and Baseline Drift
Delphine Feuerstein , Kim H. Parker and Martyn G. Boutelle
Anal. Chem., 2009, 81 (12), pp 4987–4994
Since the copyright is held by the American Chemical Society and the authors, I can't copy the code here, but if you have access to a university library account, you can download a copy. If you don't, I left the link to the file exchange version, but I haven't used it so I can't vouch for its efficacy.