Pink, Red, Blue and Violet Noise Generation with Matlab

Pink, red, blue and violet noise generation via spectral processing of a white noise.

You are now following this Submission

The present submission is a set of four Matlab functions that provides a generation of:
1) Pink (flicker) noise - power spectral density slope -3 dB/oct., -10 dB/dec.
2) Red (Brownian) noise - power spectral density slope -6 dB/oct., -20 dB/dec.
3) Blue noise - power spectral density slope +3 dB/oct., +10 dB/dec.
4) Violet (purple) noise - power spectral density slope +6 dB/oct., +20 dB/dec.
A few examples are given to clarify the usage of the functions. For convenience, the input and output arguments are given in the beginning of each function. The generated noise signal has a unity standard deviation and zero mean value.
The code is based on the theory described in:
[1] H. Zhivomirov. A Method for Colored Noise Generation. Romanian Journal of Acoustics and Vibration, ISSN: 1584-7284, Vol. XV, No. 1, pp. 14-19, 2018. (http://rjav.sra.ro/index.php/rjav/article/view/40/29)

Cite As

H. Zhivomirov. A Method for Colored Noise Generation. Romanian Journal of Acoustics and Vibration, ISSN: 1584-7284, Vol. XV, No. 1, pp. 14-19, 2018. (http://rjav.sra.ro/index.php/rjav/article/view/40/29)

Hristo Zhivomirov (2026). Pink, Red, Blue and Violet Noise Generation with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/42919-pink-red-blue-and-violet-noise-generation-with-matlab), 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.0.0.0

A new version of the codes has been uploaded.

1.9.0.0

A new version of the codes has been uploaded.

1.8.0.0

A new reference literature has been added.

1.7.0.0

A new version of the codes has been uploaded.

1.6.0.0

A new version of the codes has been uploaded.

1.5.0.0

A new version of the codes has been uploaded.

1.4.0.0

A new version of the codes has been uploaded.

1.3.0.0

A new version of the codes has been uploaded.

1.2.0.0

A semantic error has been corrected in the code.

1.0.0.0