Main Content


Cell-specific reference signal


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

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 = 200

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

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

Input Arguments

collapse all

eNodeB cell-wide settings, specified as a structure containing these parameter fields.

Parameter FieldRequired or OptionalValuesDescription

Scalar integer from 6 to 110

Number of downlink resource blocks (NRBDL)


Integer from 0 to 503

Physical layer cell identity


0 (default), nonnegative scalar 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 either:

  • 'FDD' for Frequency Division Duplex

  • 'TDD' for Time Division Duplex

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


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

Uplink–downlink configuration


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

Special subframe configuration (SSC)

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

Output Arguments

collapse all

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

Version History

Introduced in R2014a