%% Create Two Antenna Empty Sidelink Resource Array Using Grid Size
% Create an empty resource grid for two antenna planes using the vector returned by lteSLResourceGridSize and the function zeros.
% Create a UE settings structure and define a local variable for the number of antennas.

ue = struct('NSLRB',6,'CyclicPrefixSL','Normal');
ntxant = 2;

%
% Generate an empty resource grid.

reGrid = zeros(lteSLResourceGridSize(ue,ntxant));
size(reGrid)

% The third dimension indicates that two antenna planes are defined in the output grid.
% Copyright 2012 The MathWorks, Inc.