%% Get Downlink Subframe Resource Array Size
% Get the downlink subframe resource array size from a downlink configuration structure. Then, use the returned vector to directly create a MATLAB™ array.

cfgdl = struct('NDLRB',6,'CellRefP',2,'CyclicPrefix','Normal');
griddl = zeros(lteResourceGridSize(cfgdl));
size(griddl)

% The output grid, griddl, is a resource array. This resource array could be obtained in a similar manner using the lteResourceGrid function.
% Copyright 2012 The MathWorks, Inc.