Noisefk.m
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 .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Color and Styling > Blue >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
