フィルターのクリア

Generating random 225 smaple of WGN 22500 time

1 回表示 (過去 30 日間)
Mohammad Alsaleh
Mohammad Alsaleh 2019 年 1 月 12 日
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
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
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 ExchangeRandom Number Generation についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by