lteNPDSCHIndices
Generate NPDSCH RE indices
Description
[ returns
                    ind,info]
= lteNPDSCHIndices(enb,chs)ind, an array containing narrowband physical downlink
                shared channel (NPDSCH) resource element (RE) indices, and
                info, a structure containing information related to the
                indices. You can use ind to index elements of the subframe
                resource grid directly for all antenna ports in accordance with Section 10.2.3.4 of
                    [1]. Initialize this
                function with cell-wide settings enb and channel transmission
                configuration chs.
Examples
Generate the NPDSCH RE indices mapping for one antenna and display related information.
Create the eNodeB structure cell-wide settings for one antenna.
enb.NNCellID = 10;
enb.NBRefP = 1;
enb.OperationMode = 'Inband-SamePCI';Create the channel transmission configuration. Specify the number of subframes (NSF). The NSF field is required for returning information related to the NPDSCH indices.
chs.NPDSCHDataType = 'BCCHNotSIB1NB';
chs.NSF = 2;Generate the NPDSCH RE indices column vector. Display the first seven indices.
[ind,info] = lteNPDSCHIndices(enb,chs); ind(1:7)
ans = 7×1
    37
    38
    39
    40
    41
    42
    43
Display the fields contained in the info structure.
info.G
ans = 472
info.Gd
ans = 236
Generate the NPDSCH RE 0-based indices mapping in linear index form for two antennas.
Create the eNodeB structure cell-wide settings for two antennas.
enb.NNCellID = 10;
enb.NBRefP = 2;
enb.OperationMode = 'Standalone';Create the channel transmission configuration.
chs.NPDSCHDataType = 'SIB1NB';Generate the 0-based NPDSCH RE indices in linear index form. The indices matrix has two columns, one for each antenna ports. Display the first seven indices.
ind = lteNPDSCHIndices(enb,chs,{'0based','ind'});
ind(1:7,:)ans = 7×2
     0   168
     1   169
     2   170
     3   171
     4   172
     5   173
     6   174
Input Arguments
Cell-wide settings, specified as a structure containing these fields:
| Name | Required or Optional | Values | Description | Dependencies | Data Types | 
|---|---|---|---|---|---|
| NNCellID | Required | Nonnegative integer | Narrowband physical layer cell identity (PCI) | — | double | 
| NBRefP | Required | 1,2 | Number of narrowband reference signal (NRS) antenna ports | — | double | 
| OperationMode | Optional | 'Standalone'(default),'Inband-SamePCI','Inband-DifferentPCI','Guardband' | NB-IoT operation mode, specified as one of these values: 
 
 | — | char,string | 
| CellRefP | Optional | 1,2,4 | Number of cell-specific reference signal (CRS)
                                            antenna ports. The value of this field must be either
                                            the value to which you set the NBRefPfield (default) or4. | This field applies only when you specify the OperationModefield as'Inband-SamePCI'or'Inband-DifferentPCI'. When you
                                            specify theOperationModefield as'Inband-SamePCI', thelteNPDSCHIndicesfunction sets this
                                            field to the value of theNBRefPfield. | double | 
| ControlRegionSize | See Dependencies column | 3(default), scalar in the
                                            interval [0, 13] | LTE control region size. This field sets the starting OFDM symbol index (zero-based) in a subframe. | 
 | double | 
Data Types: struct
Channel transmission configuration, specified as a structure containing these fields:
| Name | Required or Optional | Values | Description | Dependencies | Data Types | 
|---|---|---|---|---|---|
| NPDSCHDataType | Optional | 'NotBCCH','SIB1NB','BCCHNotSIB1NB' | Type of data carried by the NPDSCH, specified as one of these values: 
 
 | — | char,string | 
| NSF | See Dependencies column | Nonnegative integer | Number of subframes to which a codeword is mapped, not including repetitions | 
 
 
 | double | 
| Modulation | Optional | 'QPSK'(default),'16QAM' | Modulation type | — | char,string | 
Data Types: struct
Output format and index base of generated indices, specified as one of these forms.
- '- format- base'
- "- format- base"
- {'- format','- base'}
- ["- format","- base"]
Where format and base are
            defined in this table.
| Option | Values | Description | 
| format | 'ind'(default),'sub' | Output format of generated indices To return
                                    the indices as a column vector, specify this option as
                                         To return the indices
                                    as an NRE-by-3 matrix,
                                    where NRE is the
                                    number of REs, specify this option as  | 
| base | '1based'(default),'0based' | Index base To generate indices whose first
                                    value is  | 
Example: 'ind 0based', "ind 0based",
            {'ind','0based'}, and
            ["ind","0based"] specify the same output
            options.
Data Types: char | string | cell
Output Arguments
NPDSCH RE indices, returned as an
                            NRE-by-P
                        real-valued matrix, where NRE is
                        the number of resource elements and P is the number of
                        resource array planes. Each column of ind contains the
                        per-antenna indices for the NRE
                        resource elements in each of the P resource array
                        planes.
Data Types: double
Information related to NPDSCH indices, returned as a structure containing these fields:
| Name | Values | Description | Data Types | 
|---|---|---|---|
| G | scalar | Number of coded and rate-matched downlink shared channel (DL-SCH) data bits for a codeword | double | 
| Gd | integer | Number of DL-SCH data symbols per layer. The lteNPDSCHIndicesfunction returnsGdas the value of theNSFfield of thechsinput multiplied by the
                                            number of rows in theindoutput. | double | 
Data Types: struct
References
[1] 3GPP TS 36.211. “Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: https://www.3gpp.org.
Version History
Introduced in R2018aYou can specify the Modulation field of the structure chs as
                    'QPSK' or '16QAM'. Do this to choose a
                modulation type.
See Also
lteNPDSCH | lteNPDSCH | lteNPDSCHDecode | lteNRSIndices | ltePDSCHIndices
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: .
You can also select a web site from the following list
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érica Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)