This function is used to plot and compare the power spectra of different discrete PAM signlas such as: NRZ polar, NRZ Bipolar, NRZ Unipolar, Manchester format etc....
This function is used to generate duobinary encoder and decoder output with example input and output are pasted below the function. You can test those inputs and verify your result....