wlanBCCInterleave
Interleave binary convolutionally encoded input
Syntax
y = wlanbccInterleave(位,type,numcbpssi,cbw)
y = wlanbccInterleave(位,类型,numcbpssi)
Description
outputs the interleaved binary convolutionally encoded (BCC) inputy
= wlanbccinterleave(bits
,type
,全国矿工工会CBPSSI
,CBW
)bits
for a specified interleavertype
, as defined in IEEE®802.11™-2012 Section 18.3.5.7, IEEE 802.11ac™-2013 Section 22.3.10.8, and IEEE 802.11ah™ Section 24.3.9.8.全国矿工工会CBPSSI
specifies the number of coded bits per OFDM symbol per spatial stream per interleaver block andCBW
speficies the channel bandwidth.
outputs the interleaved inputy
= wlanbccinterleave(bits
,type
,全国矿工工会CBPSSI
)bits
对于非ht交叉裂缝type
.
Examples
Interleave VHT Data Field
Perform BCC interleaving for the 'VHT' interleaving type.
定义输入参数。Set the number of coded bits per OFDM symbol per spatial stream per interleaver block to 52, the channel bandwidth to 20Mhz and the number of spatial streams, named as全国矿工工会SS,
to 4.
全国矿工工会CBPSSI = 52; cbw ='CBW20';numss = 4;
Create a sequence of bits for two OFDM symbols, four spatial streams, and one segment.
inBits = randi([0 1],(2*numCBPSSI),numSS,1,'int8');
在位上进行BCC交织。
out = wlanBCCInterleave(inBits,'VHT',numCBPSSI,cbw);
Interleave Non-HT Data Field
对非HT交织类型进行BCC交错。
定义输入参数。将每个Interleaver块每个空间流的每个空间流符号的编码位数设置为48。
全国矿工工会CBPSSI = 48;
Create a sequence of random bits for one OFDM symbol, one spatial stream, and one segment.
inBits = randi([0 1],numCBPSSI,1);
在位上进行BCC交织。
out = wlanBCCInterleave(inBits,'Non-HT',numcbpssi);
将原始序列与交错的序列进行比较。
[inbits out]
ans =48×21 1 1 1 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1⋮
Interleave Sequence
Get the interleaving sequence of a non-HT interleaver type.
定义输入参数。Set the number of coded bits per OFDM symbol per spatial stream per interleaver block to 192.
numcbpssi = 192;
Create a numeric sequence from 1 to全国矿工工会CBPSSI
.
seq = (1:numCBPSSI).';
Perform BCC interleaving on the numeric sequence.
intSeq = wlanBCCInterleave(seq,'Non-HT',numcbpssi);intSeq(1:10)
ans =10×11 17 33 49 65 81 97 113 129 145
Input Arguments
bits
—Input sequence
matrix|3-D array
Input sequence containing binary convolutionally encoded (BCC) data, specified as an (NCBPSSI×NSYM)-by-NSS-经过-NSEGarray, where:
NCBPSSIis the number of coded bits per OFDM symbol per spatial stream per interleaver block.
NSYM是OFDM符号的数量。
NSSis the number of spatial streams.
If
type
='Non-HT'
, thenNSSmust be 1.If
type
='VHT'
, thenNSSmust be from 1 to 8.
NSEGis the number of segments.
Data Types:double
|int8
type
—Type of interleaving
'VHT'
|'Non-HT'
The type of interleaving, specified as'VHT'
或者'Non-HT'
.
Data Types:char
|string
全国矿工工会CBPSSI
—Number of coded bits per OFDM symbol per spatial stream per interleaver block
positive integer
每个间断块的每个空间流的每个空间流的编码位数指定为正整数。如IEEE 802.11AC-2013表22-6所定义全国矿工工会CBPSSI
depends on the interleaving type:
'Non-HT' |
NSD×NBPSCS |
'VHT' |
NSD×NBPSCS/NSEG |
where:
NSDis the number of data subcarriers.
NBPSCSis the number of coded bits per subcarrier per spatial stream, specified as 1, 2, 4, 6, or 8.
NSEGis the number of segments.
Whentype
='Non-HT'
,全国矿工工会CBPSSI
can be 48, 96, 192, 288, and 384, sinceNCBPSSI= 48×NBPSCS.
Whentype
='VHT'
,全国矿工工会CBPSSI
can be 24, 48, 96, 144, and 192, sinceNCBPSSI= 24×NBPSCS.
Data Types:double
CBW
—Channel bandwidth
'CBW1'
|'CBW2'
|'CBW4'
|'CBW8'
|'CBW10'
|'CBW16
|'CBW20'
|“CBW40”
|'CBW80'
|'cbw160'
Channel bandwidth in MHz, specified as'CBW1'
,'CBW2'
,'CBW4'
,'CBW8'
,'CBW10'
,'cbw16'
,'CBW20'
,“CBW40”
,'CBW80'
, or'cbw160'
. When the interleaver type is set to'Non-HT'
, thenCBW
is optional.
Data Types:char
|string
Output Arguments
y
— Interleaved output
matrix | 3-D array
Interleaved output, returned as an (NCBPSSI×NSYM)-by-NSS-经过-NSEGarray, where:
NCBPSSIis the number of coded bits per OFDM symbol per spatial stream per interleaver block.
NSYM是OFDM符号的数量。
NSSis the number of spatial streams.
NSEGis the number of segments.
Extended Capabilities
C/C++ Code Generation
使用MATLAB®CODER™生成C和C ++代码。
Usage notes and limitations:
Use in aMATLAB Functionblock is not supported.
See Also
Introduced in R2017b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- AméricaLatina(Español)
- Canada(English)
- United States(English)
欧洲
- Belgium(English)
- 丹麦(English)
- Deutschland(德意志)
- España(Español)
- Finland(English)
- 法国(Français)
- 爱尔兰(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- 挪威(English)
- Österreich(德意志)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)