for i_SNR=1:length(SNRdBs)
SNRdB=SNRdBs(i_SNR);
noise_var=NT*0.5*10^(-SNRdB/10);
sigma=sqrt(noise_var);
rand('seed',1);
rand('seed',1);
N_ebits=0;
%%%%%%%%%%%%%%%%%%%%%%%%%发射机%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for i_packet=1:N_packet;
msg_bit=randint(N_pbits,1);
symbol=modulate(mod_obj,msg_bit);
Scale=modnorm(symbol,'avpow',1);
Symbol_nomalized=reshape(Scale*symbol,NT,N_frame);
for i_user=1:N_user
H(i_user,:)=(randn(1,NT)+j*randn(1,NT))/sq2;