Generating random 225 smaple of WGN 22500 time

2 vues (au cours des 30 derniers jours)
Mohammad Alsaleh
Mohammad Alsaleh le 12 Jan 2019
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 commentaires
Akira Agata
Akira Agata le 12 Jan 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 le 22 Mar 2022
What about code for generation of a sample of complex WGN? how would we do that?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by