generate i.i.d complex gaussian samples with mean S and variance V

5 ビュー (過去 30 日間)
Shailee Yagnik
Shailee Yagnik 2020 年 10 月 14 日
コメント済み: Matt J 2020 年 10 月 15 日
I want to generate iid samples which have distribution complex gaussian with some non-zero mean, say, S and variance V which is not unity. Can someone please guide me with this problem?

回答 (1 件)

Matt J
Matt J 2020 年 10 月 14 日
mvnrnd(S,V,n)
  4 件のコメント
Shailee Yagnik
Shailee Yagnik 2020 年 10 月 15 日
It doesnt really produce the complex numbers, can you guide me what I am missing here?
Matt J
Matt J 2020 年 10 月 15 日
It does for me,
mvnrnd(1i*[1;2;3],diag([4,5,6]),10)
ans = 10×3
0.7600 - 1.0000i 2.3584 - 2.0000i -2.5902 - 3.0000i -0.2108 - 1.0000i -2.2259 - 2.0000i -2.5968 - 3.0000i -2.0674 - 1.0000i 0.2097 - 2.0000i -0.7834 - 3.0000i -2.0587 - 1.0000i 3.3948 - 2.0000i -1.9422 - 3.0000i 1.2686 - 1.0000i -0.9856 - 2.0000i -4.2169 - 3.0000i -2.2509 - 1.0000i 1.1230 - 2.0000i 0.5488 - 3.0000i 0.9692 - 1.0000i 0.1214 - 2.0000i -2.7198 - 3.0000i 1.6355 - 1.0000i 3.3918 - 2.0000i -1.8752 - 3.0000i -1.8507 - 1.0000i -3.8470 - 2.0000i -0.0787 - 3.0000i -0.6912 - 1.0000i 0.7485 - 2.0000i -0.8738 - 3.0000i

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by