%% Find Number of Transmitted NRS Symbols
% 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);

% 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);

% Copyright 2018 The MathWorks, Inc.