About the generation of correlated random variables

4 次查看(过去 30 天)
Hi everyone,
I have a question to ask on this forum. I want to create random variables from the correlation matrix, found from the PSD function.
How can I proceed,
Thank you.
  2 个评论
John D'Errico
John D'Errico 2014-6-16
编辑:John D'Errico 2014-6-16
Random variables from WHAT distribution? (Sort of a trick question. Anything but a normal distribution will be somewhat difficult.)
ahmed abrous
ahmed abrous 2014-6-17
编辑:ahmed abrous 2014-6-17
In fact, I have a PSD function (Power spectral density) and I want to create a Gaussian stationary random variables from that psd.

请先登录,再进行评论。

回答(1 个)

Honglei Chen
Honglei Chen 2014-6-16
Here is an example
sigma = [1 0.2;0.2 1];
x = randn(1000,2)*chol(sigma);
corrcoef(x) % verify

类别

Help CenterFile Exchange 中查找有关 Parametric Spectral Estimation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by