CDF for number of SNR for MIMO
2 views (last 30 days)
Show older comments
I need to plot ( CDF vs SNR ) I have this program which plot CDF vs rate for same SNR
SNR_dB=10; SNR_linear=10.^(SNR_dB/10.); N_iter=50000; sq2=sqrt(0.5); nT=2; nR=2; % 2x2 n=min(nT,nR); I = eye(n); for iter=1:N_iter H = sq2*(randn(nR,nT)+j*randn(nR,nT)); C(iter) = log2(real(det(I+SNR_linear/nT*H’*H))); end [PDF,Rate] = hist(C,50); PDF = PDF/N_iter; for i=1:50 CDF(i) = sum(PDF([1:i])); end plot(Rate,CDF); end xlabel(’Rate[bps/Hz]’); ylabel(’CDF’)
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!