I'm trying to design a new modulator / demodulator.
I've designed the constellation set and mapped them to bits using a gray mapping, Added some AWGN noise to the signal and now I'm trying to demodulate.
Lets say I have the following points in my constellation:
{ (-1,1), (-1,-1), (1,1), (1,-1) }
And I got the point (0.5,0.5) after the AWGN.
Now I need to map it to the closest constellation point, in this case (1,1), and then output the corresponding bits.
What I'm looking for is an automated setup to map the points received to the closest constellation points.
Can anyone suggest a way to do it or a function to use?
Thank you