crandn

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 (2025). crandn (https://www.mathworks.com/matlabcentral/fileexchange/21325-crandn), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFourier 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