Generate 16 QAM signal

好久不见. 提交于 2019-12-05 20:00:47

Take a look at this: http://www.mathworks.com/help/comm/ref/comm.rectangularqamdemodulator-class.html

hMod = comm.RectangularQAMModulator('ModulationOrder',16);
dataIn = randi([0 15],10000,1);
txSig = step(hMod,dataIn);

You can also use:

TxS = (randi(4,N,1)*2-5)+i*(randi(4,N,1)*2-5)

Yes, it's usual to work with complex numbers (representing the I/Q (in-phase/quadrature) plane) rather than real numbers. This comes from the fact that in software defined radio, you typically consider the complex base band.

Of course, you cannot represent 16 points with only two dimensions and two values in each of these. You might want to read up on digital comms theory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!