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.

64 QAM modulation and demodulation

Status
Not open for further replies.

natalie_nyl

Newbie level 3
Joined
Dec 24, 2010
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,300
Hi ,
I have edit my MATLAB code to suit for the 64 QAM modulation. Below is my code for modulation + awgn + demodulation part. It works fine for 16 QAM but an error of "index exceeds matrix limit" is popping out when modified to 64 QAM.
Hope anyone can ans me or help me to solve that prob. Thanks a lot.

%MATLAB Code
% 64-QAM Modulation+AWGN Channel
grayencod = bitxor(0:M-1, floor((0:M-1)/2));
msg_gr_enc = grayencod(msg_enc+1);
msg_tx = modulate(modem.qammod(M, 64), msg_gr_enc);
msg_tx = rectpulse(msg_tx, nsamp);
msg_rx = awgn(msg_tx, 1000,'measured');

%Demodulation
msg_rx_int = intdump(msg_rx, nsamp);
msg_gr_demod = demodulate(modem.qamdemod(64), msg_rx_int);
[dummy graydecod] = sort(grayencod);
graydecod = graydecod - 1;
msg_demod = graydecod(msg_gr_demod+1)';
msg_demod_bi = de2bi(msg_demod,k)';
msg_demod_bi = msg_demod_bi:));

Error popped out in command window:
??? Index exceeds matrix dimensions.

Error in ==> LTEModel_64QAM at 41
msg_demod = graydecod(msg_gr_demod+1)';
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top