lteNSSSIndices
Generate NSSS RE indices for subframe
Description
Examples
Generate Zero-Based NSSS RE Indices
Generate zero-based NSSS RE indices for antenna port 2001.
Initialize cell-wide settings by specifying the operation mode, number of cell-specific RS antenna ports, physical layer cell identity, frame number, and subframe number.
enb.OperationMode = 'Inband-SamePCI'; % Operation mode enb.CellRefP = 1; % Number of cell-specific RS antenna ports enb.NCellID = 2; % Physical layer cell identity enb.NSubframe = 9; % Subframe number enb.NFrame = 4; % Frame number
Specify the antenna port and generate the NSSS RE indices, specifying zero-based indexing. To return a matrix whose rows each contain the subcarrier, index, and antenna port of the corresponding RE, specify the option 'sub'
.
port = 1; ind = lteNSSSIndices(enb,port,{'0based','sub'});
Input Arguments
enb
— Cell-wide settings
structure
Cell-wide settings, specified as a structure containing these fields.
Name | Required or Optional | Values | Description | Data Types |
---|---|---|---|---|
OperationMode | Optional | 'Standalone' (default),
'Inband-SamePCI' ,
'Inband-DifferentPCI' ,
'Guardband' | NB-IoT operation mode, specified as one of these values:
| char ,
string |
NSubframe | Optional | 9 (default), integer | Subframe number. Because the NSSS is defined only for
subframe 9 in alternate frames, the function returns an
empty array for any value of this field other than
9 . This behavior enables resource
grid indexing for any subframe number. | double |
NFrame | Optional | 0 (default), integer | Frame number. Because the NSSS is defined only for subframe 9 in alternate frames, the function returns an empty vector for odd values of this field. This behavior enables resource grid indexing for any subframe number and any frame number. | double |
NCellID | Required when you specify
OperationMode as
'Inband-SamePCI' or
'Inband-DifferentPCI' | Integer in the interval [0, 503] | PCI | double |
CellRefP | Required when you specify
OperationMode as
'Inband-SamePCI' or
'Inband-DifferentPCI' | 1 , 2 ,
4 | Number of cell-specific antenna ports | double |
Note
To exclude cell reference signal (RS) locations, specify the
NCellID
and CellRefP
fields. If you do not specify the NCellID
and
CellRefP
fields, the function assumes that
the cell RS is absent and generates NSSS values for all cell RS
locations.
Data Types: struct
port
— Antenna port
0
| 1
Antenna port, specified as 0
or 1
,
corresponding to antenna port 2000 or 2001, respectively.
Data Types: double
opts
— Output format and index base of generated indices
character vector | string scalar | cell array of character vectors | string array
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
ind
— NSSS RE indices for a subframe
complex-valued array | empty array
NSSS RE indices for a subframe, returned as a complex-valued array. The
array dimensions depend on the format options you specify in
opts
. To return ind
as a
column vector, specify 'ind'
in the
opts
input. To return ind
as
an NRE-by-3 matrix, specify
'sub'
in the opts
input. If you
specify the NSubframe
field of the
enb
input as a value other than
9
or the NFrame
field as an odd
value, the function returns this output as an empty array.
Data Types: uint32
Version History
Introduced in R2019a
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)