Documentation

wlanStreamDeparse

Stream-deparse binary input

Description

example

y = wlanStreamDeparse(bits,numES,numCBPS,numBPSCS) deparses the spatial streams specified in bits to form encoded streams. This operation is the inverse of the one defined in IEEE® 802.11™-2012 Section 20.3.11.8.2 and IEEE 802.11ac™-2013 Section 22.3.10.6.

Examples

collapse all

Stream-deparse five OFDM symbols with two spatial streams into one encoded stream.

Define the input parameters. Set the number of coded bits per OFDM symbol to 432, the number of coded bits per subcarrier per spatial stream to 2, the number of encoded streams to 1, the number of spatial streams to 2 and the number of OFDM symbols to 5.

numCBPS = 432;
numBPSCS = 2;
numES = 1;
numSS = 2;
numSym = 5;

Create a parsed input of hard bits.

parsed = randi([0 1],numCBPS/numSS*numSym,numSS)
parsed = 1080×2

1     0
1     1
0     1
1     1
1     1
0     1
0     1
1     0
1     1
1     1
⋮

Stream-deparse the bits.

deparsed = wlanStreamDeparse(parsed,numES,numCBPS,numBPSCS)
deparsed = 2160×1

1
0
1
1
0
1
1
1
1
1
⋮

Input Arguments

collapse all

Input sequence of stream-parsed data, specified as a (NCBPSS×NSYM)-by-NSS matrix, where:

• NCBPSS is the number of coded bits per OFDM symbol per spatial stream.

• NSYM is the number of OFDM symbols.

• N SS is the number of spatial streams.

Data Types: double | int8

Number of encoded streams, specified as a integer from 1 to 9, or 12.

Data Types: double

Number of coded bits per OFDM symbol, specified as an integer equal to (NBPSCS×NSS×NSD), where:

• NBPSCS is the number of coded bits per subcarrier per spatial stream. See numBPSCS.

• NSS is the number of spatial streams.

• NSD is the number of complex data numbers per frequency segment, specified as 24, 52, 108, 234, or 468.

Data Types: double

Number of coded bits per subcarrier per spatial stream, specified as 1, 2, 4, 6, or 8.

Data Types: double

Output Arguments

collapse all

Stream-deparsed output data, returned as an (NCBPS×NSYM)-by-NES matrix, where:

• NCBPS is the number of coded bits per OFDM symbol.

• NSYM is the number of OFDM symbols.

• NES is the number of encoded streams.

Extended Capabilities

C/C++ Code GenerationGenerate C and C++ code using MATLAB® Coder™. 