- Define a random binary input sequence and generate the same using the “randi” function available in MATLAB.
- Convert the binary bits (0 and 1) into their polar form (-1 and +1) using mathematical operations.
- Next, we can use these polar bits to generate a duo-binary encoder (without precoder) as follows-
- Finally, we can plot both the input bits and the duo-binary encoded signal using the “subplot” function in MATLAB. I have attached a reference screenshot below showing the signals-
