qub_feedback.m
来自「有限反馈的仿真程序」· M 代码 · 共 20 行
M
20 行
clear all;
M=4;K=6400;
epsi=0.45;
Pdb=6:2:20;
P=10.^(Pdb/10);
for series=1:2
for pwr=1:length(Pdb)
pwr
NFB=round((M-1)*log2(P(pwr))+8.68-log2(K));
H=channel(K,M);
W=codebook(M,2^NFB);
Quantized_H=qub_quantize(H,W);
SINR_sus=cal_sinr_sus(H,Quantized_H,P(pwr),epsi);
user_sinr=userselect(H,Quantized_H,SINR_sus,epsi);
SINR_sinr=cal_sinr(user_sinr,H,Quantized_H,P(pwr));
R_sinr(series,pwr)=once_sim(SINR_sinr,M);
end
end
mean_R_sinr=mean(R_sinr);
plot(Pdb,mean_R_sinr,'b-+');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?