Noisefk.m

This program generates ten files with colored random noise

You are now following this Submission

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 (2026). Noisefk.m (https://www.mathworks.com/matlabcentral/fileexchange/35381-noisefk-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0