Code covered by the BSD License  

Highlights from
MB OFDM Transmission

image thumbnail

MB OFDM Transmission

by

 

Matlab code which implements MB-OFDM transmission block as per ECMA 368 standard.

convEncode(inputBitVector)
function [codedBitVector] = convEncode(inputBitVector)
% Convolutionally encodes input data using ECMA standard for MB-OFDM system
%   codedBits = convEncoder(inputBits)
%   Encodes the inputBits convolutionally to obtain the codedBits.
%   
%   By ECMA standard the parameters of convolutional encoder are 
%   Constraint length = 7,
%   Code rate = 1/3,
%   Generator polynomial G0 = 133, G1 = 165, G2 = 171,
%   Punctured code rate 1/2;

% Constraint length
L = 7;

% Generator polynomials for the three output bits of every input bit
G0 = 133;
G1 = 165;
G2 = 171;

% Puncture pattern for reducing the code rate from 1/3 to 1/2
PUNCTURE_PATTERN = [1,0,1];

% Create trellis structure that represents the convolutional code
convCodeTrellis = poly2trellis(L,[G0,G1,G2]);

% Do convolutional encoding with puncturing to obtain encoded bits
codedBitVector = convenc(inputBitVector,convCodeTrellis,PUNCTURE_PATTERN);

Contact us