ltePUCCH2DRSIndices
PUCCH format 2 DRS resource element indices
Syntax
Description
Examples
Generate PUCCH Format 2 DM-RS Indices
Generate PUCCH format 2 DM-RS RE indices for a 1.4 MHz bandwidth and PUCCH resource index 0. Use default values for all other parameters.
Initialize UE-specific and channel configuration structures. Generate PUCCH format 2 DM-RS indices.
ue.NULRB = 6;
ue.CyclicPrefixUL = 'Normal';
chs.ResourceIdx = 0;
ind = ltePUCCH2DRSIndices(ue,chs);
ind(1:4)
ans = 4x1 uint32 column vector
73
74
75
76
Generate PUCCH Format 2 DM-RS Indices for Four Antennas
Generate the PUCCH format 2 DM-RS indices for four transmit antenna paths, and display the output information structure.
Initialize UE-specific and channel configuration structures. Generate PUCCH 2 DM-RS indices and information outputs.
ue.NULRB = 6;
ue.CyclicPrefixUL = 'Normal';
chs.ResourceIdx = [0 37 4 111];
[ind,info] = ltePUCCH2DRSIndices(ue,chs);
Because there are four antennas, the DM-RS indices are output as a four-column vector and the info
output structure contains four elements. View ind
and the size of info
to confirm.
ind(1:6,:)
ans = 6x4 uint32 matrix
73 1129 2089 3109
74 1130 2090 3110
75 1131 2091 3111
76 1132 2092 3112
77 1133 2093 3113
78 1134 2094 3114
size(info)
ans = 1×2
1 4
View the contents of one of the info
structure elements.
info(4)
ans = struct with fields:
PRBSet: [1 4]
RBIdx: 9
Generate PUCCH Format 2 DM-RS Indices Varying Indexing Style
Generate the PUCCH format 2 DM-RS indices for two transmit antenna paths, and output in subscript indexing form.
Initialize UE-specific and channel configuration structures and the indexing option parameter. Generate PUCCH 2 DM-RS indices and information outputs.
ue.NULRB = 6; ue.CyclicPrefixUL = 'Normal'; chs.ResourceIdx = [0 4]; [ind,info] = ltePUCCH2DRSIndices(ue,chs,{'sub'});
Using 'sub' indexing style, the indices are output in [subcarrier, symbol, antenna] subscript form. View the midpoint of ind and observe the antenna index change.
size(ind)
ans = 1×2
96 3
ind(46:51,:)
ans = 6x3 uint32 matrix
70 13 1
71 13 1
72 13 1
1 2 2
2 2 2
3 2 2
size(info)
ans = 1×2
1 2
Because there are two antennas, the info output structure contains two elements. View one of the info
structure elements.
info(2)
ans = struct with fields:
PRBSet: [0 5]
RBIdx: 0
Input Arguments
ue
— UE-specific settings
structure
UE-specific settings, specified as a structure containing these fields.
NULRB
— Number of uplink resource blocks
integer from 6 to 110.
Number of uplink resource blocks, specified as an integer from 6 to 110.
Data Types: double
CyclicPrefixUL
— Cyclic prefix length for uplink channels
'Normal'
(default) | 'Extended'
| optional
Cyclic prefix length for uplink channels, specified as 'Normal'
or 'Extended'
.
Data Types: char
| string
chs
— Channel transmission configuration
structure
Channel transmission configuration, specified as a structure containing the following fields.
ResourceIdx
— PUCCH resource indices
0 (default) | 0,...,1185 | integer | vector of integers | optional
PUCCH resource indices, specified as an integer or a vector of integers. Values range from 0 to 1185. There is one index for each transmission antenna. These indices determine the cyclic shift and orthogonal cover used for transmission. ()
Data Types: struct
opts
— Output format options for resource element indices
character vector | cell array of character vectors | string array
Output format options for resource element indices, specified as a character vector, cell
array of character vectors, or string array. For convenience, you can
specify several options as a single character vector or string scalar by a
space-separated list of values placed inside the quotes. Values for
opts
when specified as a character vector include
(use double quotes for string) :
Category | Options | Description |
---|---|---|
Indexing style |
| The returned indices are in linear index style. |
| The returned indices are in | |
Index base |
| The returned indices are one-based. |
| The returned indices are zero-based. |
Example: 'ind 1based'
, "ind 1based"
,
{'ind','1based'}
, or ["ind","1based"]
specify
the same formatting options.
Data Types: char
| string
| cell
Output Arguments
ind
— Resource element indices
integer column vector | three-column integer matrix
Resource element indices, returned as an integer column vector
or a three-column integer matrix. By default the indices are returned
in one-based linear indexing form that can directly index elements
of a resource matrix. These indices are ordered according to PUCCH
format 2 DRS modulation symbol mapping. The opts
input
offers alternative indexing formats. The indices for each antenna
are in the columns of ind
, with the number of
columns determined by the number of PUCCH resource indices specified
in chs
.
ResourceIdx
.
Example: [145,146,147,...]
Data Types: uint32
info
— PUCCH format 2 DRS information
structure array
PUCCH format 2 DRS information, returned as a structure array with elements corresponding to each transmit antenna and containing these fields.
PRBSet
— Indices occupied by PRB in each slot of subframe
nonnegative integer vector
Indices occupied by PRB in each slot of the subframe, returned as a nonnegative integer vector. The indices are zero-based.
Example: [0,5]
Data Types: double
RBIdx
— PUCCH logical resource block index
nonnegative integer
PUCCH logical resource block index, returned as a nonnegative integer. (m)
Data Types: double
Data Types: struct
Version History
Introduced in R2014a
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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)