Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Qam modulation and demodulation

Status
Not open for further replies.

danish shahzad

Newbie level 1
Joined
Oct 16, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
HI
I need to implement QAM Modulation, what i have is the bits from data source and the code for this is below

function [ qam_symbol ] = qam_encoder( coded_bits, m )

x=coded_bits;

k = sqrt(m);

x = [x zeros(1,ceil(length(x)/k)*k-length(x))];

bits = reshape(x,k,length(x)/k).';

levels = bin2dec(num2str(bits));

r = 2*(0:k-1) - k + 1;

[xi, yi] = meshgrid(r);

c = xi + j*flipud(yi);

qam_symbol = c(levels+1);

end

here the function returns qam_symbols next what i need to do is Demodulation i need some help. kindly comment if this code seems illogical
Thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top