Communications Toolbox | ![]() ![]() |
Creating the Signal
The variable signal
is a len
-by-1 matrix, that is, a column vector of length len
, whose entries are randomly chosen integers between 0 and M-1
. This is the signal that the example will modulate. The randint
function is part of this toolbox.
% Create a signal.
signal = randint
(len,1,M); % Random digital message
% consisting of integers between 0 and M-1
![]() | Setting Up Parameters | Modulating the Signal | ![]() |