MatLab Toolbox - 5G/NR : Synchronization                            Home : www.sharetechnote.com

 

 

 

NR Synchronization in CDL Channel

 

 

NOTE :  It is required to have Matlab 5G Toolbox to run this script. Matlab Version that I used for this page is 2019a v9.6, 5G Toolbox v1.1

 

I used the tutorial linked herealmost as it is except a little bit of modifiation except a little bit of change in plotting part. So I would not put my own matlab code here.

  

 

Example 01 :

M                               = 1;                                                % M:  # of rows in antenna array

N                               = 1;                                                % N:  # of columns in antenna array

P                               = 2;                                                % P:  # of polarizations (1 or 2)

Mg                              = 1;                                               % Mg: # of row array panels

Ng                              = 1;                                               % Ng: # of column array panels

 

ntxants = (P *(M * N)) * Mg * Ng;

nrxants = 2;

 

velocity = 0.0;

fc = 4e9;

c = physconst('lightspeed')

fd = (velocity*1000/3600)/c*fc;

 

channel = nrCDLChannel('DelayProfile', 'CDL-A');

channel.Seed = 24;

channel.CarrierFrequency         = fc;                                     % Carrier frequency

channel.MaximumDopplerShift      = fd;                                   % Doppler frequency

channel.DelaySpread = 0.0; %30e-9;

channel.ChannelFiltering = true;

channel.TransmitAntennaArray.Size= [M,N,P,Mg,Ng];

 

% Configure SNR for AWGN

SNRdB = 50;