16-qam modulation
7 views (last 30 days)
Show older comments
I have a problem with 16qam modulation. I want to modulate with 16qam a binary signal and as I know 16-qam supposed to separate the signal into groups of 4 bits and maps them each one to a complex number. The problem is that I try to do this with 16 bits but I don't take 4 complex numbers but 16! I give you the code to understand better. Thank you and sorry for my English!
clear all
close all
clc
ip = [1 0 1 0 1 0 1 0]
%------ code ------%
trell = poly2trellis([7],[133 171])
coded = convenc(ip,trell)
%------ 16qam mode ------%
q = modem.qammod(16)
y = modulate (q,coded)
%------ 16qam demode ------%
z = modem.qamdemod(16)
x = demodulate (z,y)
%------ decode ------%
decoded = vitdec(x,trell,5,'trunc','hard')
0 Comments
Accepted Answer
Hrasek
on 18 Feb 2011
For modem.qammod must be decimal input. You have to use binary decimal converter on the input modem.qammod
0 Comments
More Answers (0)
See Also
Categories
Find more on QAM in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!