For NRZ Polar, NRZ Unipolar 1. Description of The Input
For NRZ Polar, NRZ Unipolar 1. Description of The Input
Generate time domain waveforms for a random bit sequence for the following:
NRZ, RZ polar, RZ unipolar, BPSK, QPSK, QAM.
Randomly 20 binary sequences are generated by the use of the command ‘randi’
in the MATLAB code. It is all either 1’s or 0’s. This is applicable for both NRZ
polar and NRZ unipolar line coding scheme.
For NRZ Polar Line coding, all 1’s is mapped to +1 amplitude level and 0’s are
mapped to -1 amplitude level for the entire symbol duration of Tb.
For NRZ Unipolar line coding, all 1’s is mapped to +1 amplitude level and 0’s
are mapped to 0 amplitude level for the entire bit duration.
t=0:0.01:length(x);
Here ‘x’ is the input bits generated of length = 20. So it will print as :
t= 0, 0.01, 0.02, 0.03, 0.04 upto 20.
For j=1, it will take t(1) that is value = 0 and it will compare with the
value of b , which is 1. As this condition satisfies, it will take output y(1)
= p(1) = which stores the value of 1st bit in the randomly generated
sequence (either 0 or 1).
Again for j=2, it will take t(2) that value is 0.01 which is still less than the
value of b (that is 1). The condition is satisfied and it takes output y(2) =
p(1) = the same value as previous .
In this way, from 0 to 1, it will store same amplitude level ‘y’, be it either
0 or 1 based on randomly generated bits.
The amplitude level will change when for example – j = 1.01 <=1(the
value of b), it will increment the value of b ; (from the line b=b+1 in the
code) to 2.
Randomly 20 binary sequences are generated by the use of the command ‘randi’
in the MATLAB code. It is all either 1’s or 0’s. This is applicable for both RZ
polar and NRZ unipolar line coding scheme.
For RZ Polar Line coding, all 1’s is mapped to +1 amplitude level for half bit
duration Tb ;whereas for other half it remains as 0 and 0’s are mapped to -1
amplitude level for the half bit duration of Tb.
if ‘1’ is transmitted
if ‘0’ is transmitted
For RZ Unipolar Line coding, all 1’s is mapped to +1 amplitude level for half
bit duration Tb ;whereas for other half it remains as 0 and 0’s are mapped to 0
amplitude level for entire bit duration of Tb.
if ‘1’ is transmitted
if ‘0’ is transmitted
t=0:0.01:length(x);
Here ‘x’ is the input bits generated of length = 20. So it will print as :
t= 0, 0.01, 0.02, 0.03, 0.04 upto 20.
Randomly 20 binary sequences are generated by the use of the command ‘randi’
in the MATLAB code. It is all either 1’s or 0’s.
If ‘1’ is transmitted
If ‘0’ is transmitted
From the above expressions, we can say a carrier signal is multiplied with
a positive amplitude level if ‘1’ is transmitted, else it is multiplied with a
negative amplitude of same value if ‘0’ is transmitted.
The 3rd subplot shows the required waveform for BPSK signal.
FOR QPSK
Randomly 10 binary sequences are generated by the use of the command ‘randi’
in the MATLAB code. It is all either 1’s or 0’s. It is mapped to +1 and -1.
QPSK
Input bits
Acos(2*pi*f*t)
NRZ Line coding Demultiplexed
Acos(2*pi*f*t)
FOR 16-ARY QAM
Randomly 40 binary sequences are generated by the use of the command ‘randi’
in the MATLAB code. It is all either 1’s or 0’s. It is mapped to +1 and 0
indicating the transmitted bit sequence amplitude.
There is a variation in phase and amplitude observed in the output waveform for
16- ary QAM signal.