Pink, Red, Blue and Violet Noise Generation with Matlab
version 1.9.0.0 (6.72 KB) by
Hristo Zhivomirov
Pink, red, blue and violet noise generation via spectral processing of a white noise.
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 (2022). 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 .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: randnd
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.