Documentation

WlanconStellationDemap

星座拆除

Syntax

y = wlanConstellationDemap(sym,noiseVarEst,numBPSCS)
y = wlanConstellationDemap(sym,noiseVarEst,numBPSCS,demapType)
y = wlanConstellationDemap(sym,noiseVarEst,numBPSCS,phase)
y = wlanconStellationDemap(Sym,NoiseVarest,numbpscs,demaptype,阶段)

描述

example

y= wlanconStellationDemap(sym,noyevarest,numbpscs)demaps the received inputsymusing the soft-decision approximate LLR method for the specified number of coded bits per subcarrier per spatial streamnumbpscs。收到的符号必须与以下调制之一生成:

  • BPSK, QPSK, 16QAM, or 64QAM, as per IEEE®802.11™-2012,第18.3.5.8节

  • 256QAM,根据IEEE 802.11AC™-2012,第22.3.10.9.9节

  • 1024QAM, as per IEEE 802.11-16/0922r2

example

y= wlanconStellationDemap(sym,noyevarest,numbpscs,demaptype)specifies the demapping type.

example

y= wlanconStellationDemap(sym,noyevarest,numbpscs,阶段)在被指定在阶段

example

y= wlanconStellationDemap(sym,noyevarest,numbpscs,demaptype,阶段)指定拆卸类型和相位旋转。

例子

全部收缩

按照IEEE®802.11AC™-2013,第22.3.10.9.1节中定义的256QAM拆除。

创建数据位的顺序。

bit = randi([0 1],416,1,'int8');

Perform the constellation mapping on the data bits by using a 256QAM modulation. The size of the output returned equals the size of the input sequence divided by eight.

numbpscs = 8;mappeddata = wlanconStellationMap(位,numbpscs);尺寸(mappeddata)
ans =1×252 1

Perform the 256QAM constellation demapping. Because the default demapping type is soft, the output is a vector of soft bits.

noingsvar = 0;demappedData = wlanConstellationDemap(mappedData,noiseVar,numBPSCS); size(demappedData)
ans =1×2416 1

Perform a 256QAM demapping by using hard demodulation. The demapping is defined in IEEE® 802.11™-2012 Section 18.3.5.8

创建数据位的顺序。

bits = randi([0 1],416,1);

Perform the constellation mapping on the data bits by using a 256QAM constellation.

numbpscs = 8;mappeddata = wlanconStellationMap(位,numbpscs);

Perform the hard 256QAM constellation demapping. Because it is a hard demapping, the estimated noise variance is ignored.

noingsvar = 0;demaptype ='hard'; demappedData = wlanConstellationDemap(mappedData,noiseVar,numBPSCS,demapType);

验证删除数据与原始数据匹配。

que equal(位,demappeddata)
ans =logical1

BPSK和QBPSK通过使用软解码为VHT-SIG-A字段的不同OFDM符号删除。该拆卸是在IEEE®802.11ac™-2013第22.3.8.3.3节中定义的

创建数据位的顺序。在列中指定两个OFDM符号。

bits = randi([0 1],48,2,'int8');

在数据位上执行星座映射。将星座旋转的大小指定为输入序列列中的数字。第一列用BPSK调制映射。第二列通过QBPSK调制调制。

numbpscs= 1; phase = [0 pi/2]; mappedData = wlanConstellationMap(bits,numBPSCS,phase);

Perform the constellation demapping with an estimated variance noise equal to zero (no added noise). To derotate the constellation, specify the same phase as in the mapping function. The output is a vector of soft bits ready to be the input of a convolutional decoder.

noingsvar = 0;demappeddata = wlanconStellationDemap(mappeddata,noingsvar,numbPSCS,阶段);

验证删除数据与原始数据匹配。Because no noise is present, you can recover the original data without errors by assigning the negative values to a logical 1 and the positive values to a logical 0. In other words, you can convert the soft bits into hard bits.

demappedBits = int8((demappedData<=0)); isequal(bits,demappedBits)
ans =logical1

QBPSK demapping on a four-dimensional array by using hard demodulation.

Create the sequence of data bits as an array of four dimensions, with 416 coded bits per subcarrier per spatial stream per interleaver block, four OFDM symbols, two spatial streams, and two segments.

numCBPSSI = 416; numSym = 4; numSS = 2; numSeg = 2; bits = randi([0 1],numCBPSSI,numSym,numSS,numSeg); size(bits)
ans =1×4416 4 2 2

用旋转的旋转在数据位上执行QBPSK星座映射弧度。

numbpscs= 1; phase = pi/2; mappedData = wlanConstellationMap(bits,numBPSCS,phase); size(mappedData)
ans =1×4416 4 2 2

执行硬QBPSK星座拆除。要脱落星座,请指定与映射函数中相同的阶段。因为这是一个硬拆除,所以忽略了估计的噪声方差。

noingsvar = 0;demaptype ='hard'; demappedData = wlanConstellationDemap(mappedData,noiseVar,numBPSCS,demapType);

验证删除数据与原始数据匹配。

que equal(位,demappeddata)
ans =logical1

输入参数

全部收缩

接收符号的输入序列,指定为数字向量,矩阵或多维整数阵列。

数据类型:双倍的
Complex Number Support:Yes

噪声方差估计,指定为非负标量。当拆除类型设置为'hard',不需要噪声方差估计,因此被忽略。

例子:0.7071

数据类型:双倍的

每个空间流的每个子载波的编码位数, specified aslog2(M), 在哪里M是调制顺序。所以,numbpscsmust equal:

  • 1 for a BPSK modulation

  • 2 for a QPSK modulation

  • 4一16 qam调制

  • 6用于64QAM调制

  • 8 for a 256QAM modulation

  • 10对于1024QAM调制

例子:4

数据类型:双倍的

拆除类型, specified as a character vector or a string scalar. It can be'hard'for hard-decision demapping or'soft'for the soft-decision approximate LLR method.

数据类型:双倍的

星座旋转in radians, specified as a scalar, vector, or multidimensional array. The size of阶段must be compatible with the size of the inputsym阶段sym如果对于每个相应的维度,则具有兼容大小sym等于1,以及相应的维度阶段is larger than 1, then the output dimensions have the same size as the dimensions of阶段

例子:pi*(0:size(bits,1)/numBPSCS-1).'/2;

数据类型:双倍的

Output Arguments

全部收缩

Demapped symbols, returned as a numeric vector, matrix, or multidimensional array of integers.yhas the same size assym除行的数量等于行的数量sym,乘以numbpscs

Extended Capabilities

Introduced in R2017b

这个话题有帮助吗?