Arbitrary Spectral Slope Noise Generation with Matlab

Arbitrary spectral slope ( f^a) noise generation via spectral processing of white noise.
829 Downloads
Updated 17 Jun 2023

View License

The present code is a Matlab function that provides a generation of noise signal with arbitrary power spectral density (PSD) slope f^a. For instance:
1) White noise: a = 0;
2) Pink noise: a = −1;
3) Red noise: a = −2;
4) Blue noise: a = +1;
5) Violet noise: a = +2.
Two examples are given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function. The generated noise signal has 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 (2024). Arbitrary Spectral Slope Noise Generation with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/48628-arbitrary-spectral-slope-noise-generation-with-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.5.0.0

A new version of the code has been uploaded.

1.4.0.0

A new code description has been uploaded.

1.3.0.0

A new version of the code has been uploaded.

1.2.0.0

A new reference literature has been added.

1.1.0.0

A new version of the code has been uploaded.

1.0.0.0