%% Create Resource Grid for Cyclic Prefix Choice
% This example shows how to create a resource grid for either normal or extended cyclic prefix. The number of OFDM symbols within one subframe is either 14 for normal cyclic prefix, or 12 for extended cyclic prefix.
% Create the cell-wide settings structure.

enb.CyclicPrefix = 'Normal';
enb.NDLRB = 9;
enb.CellRefP = 1;

%
% Get subframe resource grid dimensions.

dims = lteDLResourceGridSize(enb)

%
% Switch to extended cyclic prefix.

enb.CyclicPrefix = 'Extended';
dims = lteDLResourceGridSize(enb)

% The second dimension of the output of lteDLResourceGridSize is the number of symbols in the subframe.
% Copyright 2012 The MathWorks, Inc.