spikeRemoval
spikeRemoval

spikeRemoval

This function replace or delete unwanted spikes (outliers) exceeding the threshold value using histogram method.

Download
Download

You are now following this Submission

Cite As

Dr. Erol Kalkan, P.E. (2026). spikeRemoval (https://www.mathworks.com/matlabcentral/fileexchange/69614-spikeremoval), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.1.0

Updated references

Download
2.0.9

Replaced diff with nth order central difference function.
Updated notes

Download
2.0.8

Updated notes

Download
2.0.7

Updated notes

Download
2.0.6

Added return -1 if no spike found

Download
2.0.5

Added output array for indices of spikes, their values and replacements (thanks to Dr. Ayal Anis)
Added "delete" option to "method" to replace spikes (outliers) with "NaN" (thanks to Dr. Ayal Anis)
Added nanmean and nanstd (thanks to Jan Glscher)

Download
2.0.4

Comments are updated

Download
2.0.3

Excluded spike in spike search window for mean and standard deviation computation; bug fix for spike search in the beginning and end regions of the input array.

Download
2.0.2

Modified comments

Download
2.0.1

Reference added, description updated

Download
2.0.0

Code re-organized to eliminate the wrapper.
"varargin" was added to give flexibility.
All global variables were removed.

Download
1.0.0

Download