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

cfgul = struct('NULRB',50,'CyclicPrefixUL','Normal');
p = 2;
gridul = zeros(lteULResourceGridSize(cfgul,p));
size(gridul)

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