%% Determine Downlink Subframe Resource Array Size
% Determine the size of a downlink subframe resource array.
% Determine the dimensions of a downlink subframe resource array, using cell-wide settings, enb. Then, use the returned vector directly to create a resource grid as a multidimensional array.

enb = struct('NDLRB',50,'CellRefP',2,'CyclicPrefix','Normal');
rgrid = zeros(lteDLResourceGridSize(enb));
size(rgrid)

% The same result can be obtained by calling the lteDLResourceGrid function.
% Copyright 2012 The MathWorks, Inc.