Main Content

lteNRS

Generate cell-specific NRS symbols

Description

sym = lteNRS(enb) generates sym, a column vector of cell-specific narrowband reference signal (NRS) symbols, for cell-wide settings enb. Unlike other physical channels and signals, the symbols for all antennas are not returned as a matrix with one column for each antenna, since the number of symbols varies across antenna ports.

example

sym = lteNRS(enb,ports) generates NRS symbols for input cell-wide settings for the input NRS antenna ports specified by ports.

example

Examples

collapse all

Initialize cell-wide settings by specifying a narrowband physical layer cell identity, number of NRS antenna ports, and subframe number.

enb.NNCellID = 42;    % Physical layer cell identity
enb.NBRefP = 1;       % Number of NRS antenna ports
enb.NSubframe = 4;    % Subframe number

Generate and display the NRS symbols for the specified cell-wide settings.

sym = lteNRS(enb);
disp(sym);
   0.7071 - 0.7071i
   0.7071 + 0.7071i
  -0.7071 + 0.7071i
   0.7071 - 0.7071i
   0.7071 + 0.7071i
  -0.7071 - 0.7071i
   0.7071 + 0.7071i
   0.7071 - 0.7071i

Find the number of NRS symbols transmitted at NRS antenna ports.

Specify the cell-wide settings as fields in the structure enb. Generate the NRS symbols transmitted at antenna port 2000.

enb.NNCellID = 10;      % Physical layer cell identity
enb.NBRefP = 2;         % Number of NRS antenna ports
enb.NSubframe = 2;      % Subframe number
ports = 0;              % Antenna port 0
sym = lteNRS(enb,ports);    % Return NRS symbols

Compute and display the number of NRS symbols transmitted at the antenna port.

nrsPort2000 = length(sym);
disp(nrsPort2000);
     8

Generate the NRS symbols transmitted at antenna ports 2000 and 2001. Compute and display the number of NRS symbols transmitted at both ports.

symAll = lteNRS(enb);
nrsPortAll = length(symAll);
disp(nrsPortAll);
    16

Input Arguments

collapse all

Cell-wide settings, specified as a structure containing these fields:

NameValuesDescriptionData Types
NNCellIDinteger in the interval [0, 503]Narrowband physical layer cell identitydouble
NBRefP1, 2Number of NRS antenna portsdouble
NSubframeintegerSubframe numberdouble

Data Types: struct

NRS antenna ports, specified as 0, 1, or [0 1].

Data Types: double

Output Arguments

collapse all

NRS symbols for a subframe, returned as a complex-valued column vector.

Data Types: double

Version History

Introduced in R2019a