%% Generate SRS Symbols for Two Antennas
% Generate the SRS symbols for two transmit antenna paths. Display the information structure.
% Initialize UE-specific and channel configuration structures (ue and chs) for 3 MHz bandwidth and two antennas using the default SRS configuration. Generate SRS symbols and the information structure (ind and info).

ue.DuplexMode = 'FDD';
ue.CyclicPrefixUL = 'Normal';
ue.NFrame = 0;
ue.NULRB = 15;
ue.NSubframe = 0;

chs = struct();
chs.NTxAnts = 2;
chs.BWConfig = 7;
chs.BW = 0;
chs.CyclicShift = 0;
chs.ConfigIdx = 7;
chs.SeqIdx = 0;
chs.SeqGroup = 0;

[ind,info] = lteSRS(ue,chs);

%
% Since there are two antennas, the SRS symbols are output as a two column vector and the info output structure contains two elements.

ind(1:6,:)
size(info)

%
% View the contents of the two info structure elements.

info(1)
info(2)

% Copyright 2012 The MathWorks, Inc.