I need to compare the bandwidth occupancy of NRZ - L and Bi phase - L and show that NRZ occupies half (0.7 times data rate) the bandwidth of Bi Phase(1.4 times data rate). How can I generate both these waveforms with an input stream of bits of data rate say 4 Mbps and then view the bandwidth occupancy?