SIMULATION AND PERFORMANCE ANALYSIS OF
BASEBAND TRANSMISSION
1. Generate a random binary sequence with 1000 bits, in which the probability of “0” is 0.8 and the probability of “1” is 0.2, respectively. Code:
>> NRZ=randsrc(1,1000,[1,0;0.2,0.8])
2. Plot the first 20 bits of the binary sequence as the NRZ signals.
>> for i=1:20
NRZ_plot(i)=NRZ(i);
end
>> figure(1);
subplot(3,1,1)
>> stairs(NRZ_plot)
3. Transfer the random binary sequence to the NRZI signals and Miller codes. Plot the first 20 bits of the NRZI and Miller Code waveforms.