crandn

版本 1.0.0.0 (2.5 KB) 作者: Stephen Bocquet
Generate m sequences of n Gaussian random numbers with a specified autocorrelation function
1.1K 次下载
更新时间 2008/9/4

查看许可证

[cg, psg] = crandn(rgau,m)
Generate correlated Gaussian sequences by Fourier synthesis.

Input parameters:
rgau = correlation function - length n/2
m = number of realisations

Output:
cg = m x n matrix containing m sequences of n correlated variates from
a zero mean, unit variance normal distribution
psg = input power spectrum (Fourier transform of correlation function)

Note: Since this uses the fast Fourier transform, it will be fastest if n is a power of 2.

crandndemo.m is a demonstration. Note that one plot requires the function plotcdfkuiper (File Exchange ID #21280)

引用格式

Stephen Bocquet (2024). crandn (https://www.mathworks.com/matlabcentral/fileexchange/21325-crandn), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0