%% Perform Uplink Perfect Channel Estimation
% Perform uplink perfect channel estimation for a chosen propagation channel configuration.
% Initialize UE-specific settings, specifying fields appropriate for an LTE uplink configuration.

ue.NULRB = 6;
ue.CyclicPrefixUL = 'Normal';
ue.NTxAnts = 2;
ue.TotSubframes = 1;

% Specify propagation channel conditions.

channel.Seed = 1;
channel.DelayProfile = 'EPA';
channel.NRxAnts = 4;
channel.DopplerFreq = 5.0;
channel.MIMOCorrelation = 'Low';
channel.InitPhase = 'Random';
channel.InitTime = 0.0;
channel.ModelType = 'GMEDS';
channel.NTerms = 16;
channel.NormalizeTxAnts = 'On';
channel.NormalizePathGains = 'On';

% Perform uplink perfect channel estimation and display the dimension of the channel estimate array.

hest = lteULPerfectChannelEstimate(ue,channel);
disp(size(hest));

% Copyright 2012 The MathWorks, Inc.