📄 generate_h.m
字号:
function H = generate_H(nTx, nRx, R, lH, type, PDP_linear)
% H = generate_H(nTx, nRX, R, lH, type)
%
% Generates a H matrix whose correlation properties fit the values
% in given in correlation matrix R. These values can be (complex)
% field correlation coefficients or (real positive) power
% correlation coefficients
if (type == 0) % complex correlation
C = sqrtm(R);%chol(R);
else % power correlation coefficient
C = sqrtm(R.^.5);
end;
H = zeros(nRx, nTx, lH);
for k = 1:lH
TildeA = (C*(randn(nTx*nRx,1)+i*randn(nRx*nTx,1)))./sqrt(2);
H(:,:,k) = reshape(TildeA, nRx, nTx);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -