16-qam modulation

11 ビュー (過去 30 日間)
jordi10
jordi10 2011 年 1 月 27 日
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')

採用された回答

Hrasek
Hrasek 2011 年 2 月 18 日
For modem.qammod must be decimal input. You have to use binary decimal converter on the input modem.qammod

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQAM についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by