Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

wlanBCCEncode

Convolutionally encode binary data

Syntax

y = wlanBCCEncode(bits,rate)

Description

example

y = wlanBCCEncode(bits,rate) convolutionally encodes the binary input bits using a binary convolutional code (BCC) at the specified rate. The BCC is defined in IEEE® 802.11™-2012 Sections 18.3.5.6 and 20.3.11.6.

Examples

collapse all

Encode a sequence of data bits by using a BCC of rate 3/4.

Create the sequence of data bits.

dataBits = randi([0 1],300,1);

BCC-encode the data bits.

encodedData = wlanBCCEncode(dataBits,'3/4');
size(encodedData)
ans = 

   400     1

Encode two streams of data bits by using a BCC of rate 1/2.

Create the sequence of data bits.

dataBits = randi([0 1],100,1,'int8');

Parse the sequence of bits as defined in IEEE® 802.11™-2012 Section 20.3.11.5 and IEEE® 802.11ac™-2013 Section 22.3.10.5.2. numES is the number of encoded streams.

numES = 2;
parsedData = reshape(dataBits,numES,[]).';

BCC-encode the parsed sequence.

encodedData = wlanBCCEncode(parsedData,1/2);
size(encodedData)
ans = 

   100     2

Input Arguments

collapse all

Input sequence with data bits to encode, specified as a binary matrix. The number of columns must equal the number of encoded streams. Each stream is encoded separately.

Data Types: double | int8

Code rate of the binary convolutional code (BCC), specified as a scalar, character array, or string scalar. rate must be a numeric value equal to 1/2, 2/3, 3/4, or 5/6, or a character vector or string scalar equal to '1/2', '2/3', '3/4', or '5/6'.

Example: '1/2'

Data Types: double | char | string

Output Arguments

collapse all

Binary convolutionally encoded output, returned as a binary matrix of the same type of bits. The number of rows of y is the result of dividing the number of rows of input bits by rate, rounded to the next integer. The number of columns of y is equal to the number of columns of bits.

Extended Capabilities

Introduced in R2017b

Was this topic helpful?