Arbitrary Spectral Slope Noise Generation with Matlab
Version 1.4.0.0 (3 KB) by
Hristo Zhivomirov
Arbitrary spectral slope ( f^a) noise generation via spectral processing of white noise.
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 (2023). 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 LinuxCategories
Tags
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.