Generating random 225 smaple of WGN 22500 time
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Akira Agata
il 12 Gen 2019
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
il 22 Mar 2022
What about code for generation of a sample of complex WGN? how would we do that?
Risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!