White Noises Generation in Matlab

조회 수: 2 (최근 30일)
Lapo
Lapo 2013년 1월 18일
Hi, I'm writing a function for the simulation of a multi-correlated random process with autoregressive filters' method. So I need to generate M white noises, being M the process dimension. I've tried using both "randn" and "mvnrnd", but the white noises seems to be not perfectly unrelated. In fact both the coherence functions and the cross-spectrums are not zero. This affects the simulated process' quality, which is more correlated than I expect. So, is there a better way to generate an M dimensional process of unrelated white noises?

답변 (1개)

Daniel Shub
Daniel Shub 2013년 1월 18일
This isn't really a MATLAB question, I think your understanding of random processes is a little off. If you generate finite length random samples from two uncorrelated random processes you will find that the correlation is not exactly zero. As the length of the sample increases the correlation will decrease.
  댓글 수: 3
Daniel Shub
Daniel Shub 2013년 1월 18일
Is your problem essentially that corrcoef(randn(1e3, 1), randn(1e3, 1)) doesn't return an identity matrix?
Lapo
Lapo 2013년 1월 18일
The corrcoef matrix is near enought to the identity matrix. My problem is in
>>u=randn(Ns,2)
>>mscohere(u(:,1),u(:,2),[],[],Ns,'sample frequency')
I expect mscohere to be zero, but it always show a mean value 0.3. This affect the quality of the signal simulated by AR method. The same thing happen obviously with the cross-spectrum

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spectral Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by