How to modify the following code for nakagami fading channel without considering a MIMO system as shown below?
4 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!