I want to plot the SNR vs BER plot for 16 QAM. I need help in generating QAM signal
I tried generating it but I'm not sure if it is right
for n in range (0, itr):
EbNodB = EbNodB_range[n]
EbNo=10.0**(EbNodB/10.0)#antilog of SNR
x=(np.random.randn(4,16,1)*2-5)+ 1j*(np.random.randn(4,16,1)*2-5)#QAM
signal
h=np.sqrt(np.random.normal(0,1)**2+np.random.normal(0,1)**2)/np.sqrt(2)
#Magnitude of Rayleigh channel coefficient
noise_var = 1/sqrt(2*EbNo) #AWGN variance
noise=noise_var* randn(N) #AWGN noise
y = h*x + noise
y_d = y-h
errors = (x != y_d).sum()
ber[n] = errors / N
The plot appears empty