cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Generate QAM coefficients?

SOLVED
ptc-5008524
1-Newbie

Generate QAM coefficients?

Hi all, I am new here and I am not sure if this is the right topic to post under. Nonetheless, I was trying to write code that generates the coefficients of a quadrature amplitude modulated signal. The equation of a QAM signal is given below.

qam+.PNG

From the equation above, a and b are the coefficients which come from a set as shown in the image below. Also, a and b together comprise all possible combinations of the numbers in the set.

qam1.PNG

M is the constellation size, for instance, 4-QAM, 64-QAM. Therefore, an example of a and b for 4-QAM would be as seen below.

qam2.PNG

As you can see, the maximum value is +/- sqrt(M) - 1 and all possible combinations are shown. Restating my question, I would like help in writing a function that would generate these values for me. It is quite easy to manually do it for small values of M but obviously for values of M like 64 and 1024, it would be quite difficult. Thank you in advance for any assistance provided.

1 ACCEPTED SOLUTION

Accepted Solutions

Jonathan Mayers wrote:

Thanks for the reply but I have Mathcad 13 and it says it can't open the file.

You should have stated that in your quest.

Here is the file in Mathcad 11 format - this should work

View solution in original post

4 REPLIES 4

The attached file should help

Thanks for the reply but I have Mathcad 13 and it says it can't open the file.

Jonathan Mayers wrote:

Thanks for the reply but I have Mathcad 13 and it says it can't open the file.

You should have stated that in your quest.

Here is the file in Mathcad 11 format - this should work

View solution in original post

I'll remember to state my version in future posts. Thanks alot!

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."