rey.m

来自「stbc for flat rayleigh fading channel」· M 代码 · 共 22 行

M
22
字号
function H=rey(Nr,Nt)

%This function builds a matrix of Rayleigh Channel Coefficients. The input variables are
%the number of TX antenna Nt and the number of RX antenna. The matrix is useful just for 
%one symbol. I u want a frame, u should use this function a number of time that depends
%on the length of your frame.
%
%
%Take care!
%
%
%Max

H=zeros(Nt,Nr);
R=eye(Nt*Nr);                                               %Correlation matrix. 
X=randn(Nt*Nr,1)/sqrt(2)+j*randn(Nt*Nr,1)/sqrt(2);          %Channel coefficients
H=reshape(R'*X,Nr,Nt);                                      %The matrix.




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?