%% Get Uplink Subframe Resource Array Size Using Optional Antenna Plane Input
% Get the uplink subframe resource array size from an uplink configuration structure and antenna plane input. Then, use the returned vector to directly create a MATLAB™ array.

cfgul = struct('NULRB',25,'CyclicPrefixUL','Normal');
p = 4;
gridul = zeros(lteResourceGridSize(cfgul,p));
size(gridul)

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