%% Generate 16-QAM Modulated Symbols
% Generate a random sequence of binary values of length 40. Generate modulated symbols using 16-QAM modulation.

data = randi([0 1],40,1);
sym = nrSymbolModulate(data,'16QAM');

% Copyright 2019 The MathWorks, Inc.