Cell-specific reference signal


  • sym = lteCellRS(enb)
  • sym = lteCellRS(enb,ports)


sym = lteCellRS(enb) returns cell-specific reference signal symbols for cell-wide settings in the enb structure. sym is a complex-valued column vector containing cell-specific reference signal symbols. Unlike other physical channels and signals, the symbols for multiple antennas are concatenated into a single column rather than returned in a matrix with a column for each antenna. The reason for this behavior is that the number of symbols varies across the antenna ports.


sym = lteCellRS(enb,ports) returns cell-specific reference signal symbols for antenna ports specified in the vector, ports (0,1,2,3), and cell-wide settings structure, enb. In this case, CellRefP is ignored if present in enb and ports is used instead.


collapse all

Find Length of Cell-Specific Reference Signals

This example shows different numbers of cell-specific reference signal symbols transmitted at antenna port 0 and 2.

Initialize cell wide parameter structure, enb, to RMC R.6

enb = lteRMCDL('R.6');

Observe the number of cell-specific reference symbols on port 0

cellRefPort0 = length(lteCellRS(enb,0))
cellRefPort0 =


Observe the number of cell-specific reference symbols on port 2

cellRefPort2 = length(lteCellRS(enb,2))
cellRefPort2 =


Input Arguments

collapse all

enb — eNodeB cell-wide settingsstructure

eNodeB cell-wide settings, specified as a structure that can contain these parameter fields.

Parameter FieldRequired or OptionalValuesDescription

Scalar integer (6,...,110). Standard bandwidth values are 6, 15, 25, 50, 75, and 100. NDLRB also accepts the standardized bandwidths in string format from the set {'1.4MHz', '3MHz', '5MHz', '10MHz', '15MHz', '20MHz'}.

Number of downlink (DL) resource blocks (RBs)


Integer from 0 to 503

Physical layer cell identity.


Nonnegative integer

Subframe number.


1, 2, 4

Number of cell-specific reference signal (CRS) antenna ports


'Normal' (default), 'Extended'

Cyclic prefix length


'FDD' (default), 'TDD'

Duplexing mode, specified as:

  • 'FDD' for Frequency Division Duplex or

  • 'TDD' for Time Division Duplex

The following parameters are dependent upon the condition that DuplexMode is set to 'TDD'.


0 (default), 1, 2, 3, 4, 5, 6

Uplink or downlink configuration


0 (default), 1, 2, 3, 4, 5, 6, 7, 8, 9

Special subframe configuration (SSC)

ports — Antenna ports0 (default) | Optional | 1 | 2 | 3 | numeric vector

Antenna ports, specified as a numeric vector whose elements must be (0, 1, 2, 3).

Output Arguments

collapse all

sym — Cell-specific reference signal symbolscomplex-valued numeric column vector

Cell-specific reference signal symbols, returned as a complex-valued numeric column vector. This argument contains cell-specific reference signal symbols for the specified cell-wide settings, enb, and optional number of antenna ports, ports.

Data Types: double
Complex Number Support: Yes

Introduced in R2014a

Was this topic helpful?