How to modify the following code for nakagami fading channel without considering a MIMO system as shown below?
4 次查看(过去 30 天)
显示 更早的评论
function H=nak_m(m,Nr,Nt)
m=2;
Nr=5;
Nt=5;
n=zeros(Nr,Nt);
for i=1:2*m
n=n+randn(Nr,Nt).^2;
end
n=n/(2*m);
phi=2*pi*rand(Nr,Nt);
H=(n^0.5).*cos(phi)+j*(n^0.5).*sin(phi);
v=abs(H)
end
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!