ZMCSCG通道的代码是这样的吗? h_1 = sqrt(1/2)*(randn(N,1)+ 1i * randn(N,1));

时间:2019-02-12 15:04:16

标签: matlab

我们用h_K表示N是1矩阵,即N天线TX和单天线RX k之间的信道矢量。假设每个h_k的条目都是独立的零均值圆对称复高斯(ZMCSCG)随机变量,其方差σ^ 2_ {h,k}取决于TX到RX k的传播损耗。

如果k为1〜4,则范围为 我可以这样写代码吗?还是我应该改善什么?

h_1=sqrt(1/2)*(randn(N,1)+1i*randn(N,1));
h_2=sqrt(1/2)*(randn(N,1)+1i*randn(N,1));
h_3=sqrt(1/2)*(randn(N,1)+1i*randn(N,1));
h_4=sqrt(1/2)*(randn(N,1)+1i*randn(N,1));
h_kk=cat(2,h_1 ,h_2 ,h_3, h_4)

h_kk是ZMCSCG

1 个答案:

答案 0 :(得分:0)

要考虑您的渠道中所需的差异,您需要执行以下操作:

h_1=sqrt(sigmah1squared/2)*(randn(N,1)+1i*randn(N,1));
h_2=sqrt(sigmah2squared/2)*(randn(N,1)+1i*randn(N,1));
h_3=sqrt(sigmah3squared/2)*(randn(N,1)+1i*randn(N,1));
h_4=sqrt(sigmah4squared/2)*(randn(N,1)+1i*randn(N,1));
h_kk = [h1, h2, h3, h4];

或更紧凑

sigmasquared = [sigmah1squared, sigmah2squared, sigmah3squared, sigmah4squared];
h_kk = sqrt(diag(sigmasquared))/sqrt(2)*(randn(N,4)+1i*randn(N,4));