Generating random 225 smaple of WGN 22500 time
1 次查看(过去 30 天)
显示 更早的评论
I need to generate random sequence of complex white Gaussian Noise of 225 sample, 22500 times.
Here is the part of the code I used to do so:
for N = 1:1:22500
Wn = wgn(1, 225, 3,'complex');
% I deleted this part of the code where I use every sequence I generate every time
end
I noticed however from the rank of the output matrix that the rank is only 223, so not full rank, so I expet that theere might be repetition in the randon sequence generation.
I also tried using rng('shuffle') before generating every sequence but didnt work.
Any ideas how to make sure that these 22500 sequence are completely uncorrelated?
2 个评论
Akira Agata
2019-1-12
I'm not sure why the rank becomes 223 in your calculation. Anyway, when I tried generating all AWGN values at once (= 22500-by-225 complex matrix), the rank was confirmed to be 225. So how about the following?
WnAll = wgn(22500,225,3,'complex');
for N = 1:1:22500
Wn = WnAll(N,:);
% Do something (your deleted part)
end
Omair Mohammad Ikram
2022-3-22
What about code for generation of a sample of complex WGN? how would we do that?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!