Noisefk.m

This program generates ten files with colored random noise
249 Downloads
Updated 29 Feb 2012

View License

The program asks for:

"Tsam",the desired time scale; it may be any real. This value is used to generate the time (sec) and frequency (HZ) axis,

"k", the desired power spectrum decay law

¨N¨ the desired length of the time series. It is convenient to use N greater than 50000.

The program saves ten files in the same directory where the program runs. Their names are gen#f*.txt, where # runs from 1 to 10 and * is the value of "k" selected by the user.

Each of these files have a column with one time series of length N and colored spectrum.
%
Another file is also saved in the same directory with the name spectra.eps. It contains a figure with two subplots:
-subplot (a) is the power spectrum in logaritmic scale for a uniform, white series used at the beginning of the program;
- subplot (b) is the power spectrum in logaritmic scale of the the time series saved as gen10f*.txt.

Cite As

Hilda Larrondo (2024). Noisefk.m (https://www.mathworks.com/matlabcentral/fileexchange/35381-noisefk-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Blue 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