Azzera filtri
Azzera filtri

Generating random 225 smaple of WGN 22500 time

1 visualizzazione (ultimi 30 giorni)
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
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
Omair Mohammad Ikram il 22 Mar 2022
What about code for generation of a sample of complex WGN? how would we do that?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by