Jitter

Adds a small amount of noise to an array. Ideal for signal processing or chaos theory.
4.5K Downloads
Updated 22 Mar 2006

View License

Jitter adds a small amount of gaussian (white) or uniform noise to a vector, matrix or N-D array.

This function is ideal for adding noise to a signal for processing, or generating starting conditions for chaotic functions.

The magnitude of the noise is given as either a fraction of the smallest difference between values of the input array, or as a fraction of the range of values of this input array.

See picture for an example.

This file is based upon the R function 'jitter' by written by Werner Stahel and Martin Maechler, ETH Zurich.
See http://stat.ethz.ch/R-manual/R-patched/library/base/html/jitter.html
for details of the original.

I've added support for imaginary inputs and gaussian noise, which weren't in the original.

Cite As

Richie Cotton (2024). Jitter (https://www.mathworks.com/matlabcentral/fileexchange/10425-jitter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Geology in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Corrected problems with help; removed call to range so that the stats toolbox is no longer required; given user control over imaginary noise.