code AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave (Matlab) We once had a homework way back when decided to share it. I edited this script which is in Matlab. I hope you like it. It simply is an analysis of AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave. %Amplitude Modulation