lteNPUSCHIndices
Generate NPUSCH RE indices
Description
[
generates ind,info] = lteNPUSCHIndices(ue,chs)ind, a column vector of narrowband physical uplink shared
channel (NPUSCH) resource element (RE) indices, and info, information
related to the indices. The function generates indices for mapping NPUSCH symbols to
physical resources, as specified in Section 10.1.3.6 of [1], for user equipment
(UE) settings ue and channel transmission configuration
chs.
Examples
Configure UE-specific settings.
ue = struct('NBULSubcarrierSpacing','15kHz');
Specify a channel transmission configuration.
chs = struct('NPUSCHFormat','Data','NBULSubcarrierSet',[0:11],'NRU',1, ... 'NULSlots',2,'Modulation','BPSK');
Generate the NPUSCH RE indices for the specified settings. Display the corresponding information.
[ind,info] = lteNPUSCHIndices(ue,chs); disp(info)
Gd: 144
G: 144
Configure UE-specific settings.
ue = struct('NBULSubcarrierSpacing','15kHz');
Specify a channel transmission configuration.
chs = struct('NPUSCHFormat','Data','NBULSubcarrierSet',0:11, ... 'NRU',1,'NULSlots',2,'Modulation','BPSK');
Generate the NPUSCH RE indices, specifying zero-based formatting.
[ind,info] = lteNPUSCHIndices(ue,chs,'0based');Input Arguments
UE-specific settings, specified as a structure containing this field.
| Field | Values | Description | Data Types | ||||||
|---|---|---|---|---|---|---|---|---|---|
NBULSubcarrierSpacing | '3.75kHz', '15kHz' | NB-IoT uplink subcarrier spacing To set a subcarrier
spacing of 3.75 kHz, specify this field as | char, string | ||||||
| 'FDD' or 'TDD'. The default is
'FDD'. | Duplex mode. Specify 'FDD' for frequency division
duplexing and 'TDD' for time division duplexing. | char, string | ||||||
| Integer in the range [0, 5]. The default is 0. | Supported TDD uplink-downlink configurations, as specified in Table
10.1.2.3-2 of [1]. This
field applies only when you specify Possible values depend on the
| double | ||||||
NSlot | Nonnegative integer | Slot number. This field applies only when you specify
DuplexMode as 'TDD'. | double |
Data Types: struct
Channel transmission configuration, specified as a structure containing these fields:
| Field | Values | Description | Data Types |
|---|---|---|---|
NPUSCHFormat | 'Data', 'Control' | NPUSCH format To indicate that the NPUSCH carries
narrowband uplink shared channel (UL-SCH) data, specify this field as
| char, string |
NBULSubcarrierSet | Integer in the interval [0, 47], vector of integers in the interval [0, 11] | NB-IoT uplink subcarrier indices, in zero-based form If
you specify the If you specify
the | double |
NRU | 1, 2, 3,
4, 5, 6,
8, 10 | Number of RUs | double |
NULSlots | 2, 4, 8,
16 | Number of slots per RU If you specify the
If you
specify the
| double |
Modulation | 'BPSK', 'QPSK',
'16QAM' | Modulation type To enable binary phase-shift keying
(BPSK), specify this field as If you specify the
| char, string |
Data Types: struct
Output format and index base of generated indices, specified as one of these forms.
'formatbase'"formatbase"{'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
NPUSCH RE indices, returned as an integer-valued column vector of length NRE equal to the number of REs.
Data Types: double
Information related to NPUSCH RE indices, returned as a structure containing these fields:
| Field | Values | Description | Data Types |
|---|---|---|---|
G | Nonnegative integer | Number of coded and rate-matched uplink shared channel (UL-SCH) data bits for a codeword | double |
Gd | Nonnegative integer | Number of UL-SCH data symbols The function returns this
field as the value of | 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). https://www.3gpp.org.
Version History
Introduced in R2020aSee Also
Functions
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)