|
|
| File Information |
| Description |
The script generates spatial data with a scale-invariant power spectrum (1/f noise) and a normal error distribution.
The spectral density of the data is proportional to f^BETA, where f is the frequency and BETA is the spectral exponent (BETA=0 is white noise, BETA=-2 is Brown noise).
To generate Brown noise on a 10x10 grid you type
spatialPattern([10,10],-2)
which gives a 10x10 matrix containihng the data.
1/f noise is not stationary, and so doesn't have a well defined variance. A variogram of the data show variance linearly increasing with increasing lag.
Time series data can also be generated. For example, a pink noise time series of lenth 1000 is produced by
spatialPattern([1000,1],-1) |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (7) |
| 21 Jun 2005 |
Gomez Lopez
|
|
|
| 28 Jul 2005 |
Madhukar U S
|
|
|
| 02 Mar 2006 |
Stanley Bileschi
|
|
|
| 14 Mar 2006 |
Md Nurujjaman
|
|
|
| 16 Jun 2006 |
Terence Picton
|
|
|
| 06 Oct 2007 |
Yuval Cohen
|
|
|
| 15 Jul 2009 |
Gabriel Akira Schreiber
|
|
|
| Updates |
| 03 Oct 2005 |
The original script defined beta to be a factor of two different from standard value. This has now been corrected. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com