%% Create PUSCH DM-RS Object
% Create a physical uplink shared channel (PUSCH) specific demodulation reference signal (DM-RS) object, dmrs.
% Specify a single-symbol DMRS with number of DM-RS additional positions as 3, sequence hopping as 1, and having antenna ports as 0 and 4.

dmrs = nrPUSCHDMRSConfig;
dmrs.DMRSLength = 1;
dmrs.DMRSAdditionalPosition = 3;
dmrs.SequenceHopping = 1;
dmrs.DMRSPortSet = [0 4];

% View the corresponding dmrs properties.

disp(dmrs)

% Copyright 2019 The MathWorks, Inc.