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

cfgul = struct('NULRB',6,'NTxAnts',2,'CyclicPrefixUL','Normal');
gridul = zeros(lteResourceGridSize(cfgul));
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.