%% Get Size of Uplink Subframe Resource Array
% Use the returned vector to directly create MATLAB® arrays.

ue = struct('NULRB',6,'CyclicPrefixUL','Normal','NTxAnts',1);
rgrid = zeros(lteULResourceGridSize(ue));
size(rgrid)

% This result is the same matrix as the one obtained using the lteULResourceGrid function.
% Copyright 2012 The MathWorks, Inc.