DSB:
Write the code for an m-file (script) to generate a DSB signal.The modulating (message) signal is a single tone signal withfrequency 1kHz and the carrier frequency is 30kHz. Time Vector:3001 points over range from 0 to 3ms (3 cycles of the modulatingsignal). Plot your original message signal both in time and itsspectrum. (Note: use the cosine functions for your signals). Inyour report you should include the plots for the modulated signalin time and for the spectrum of the modulated signal.
AM:
For the same message signal and same carrier as in part a. writethe code for an m-file to generate an AM signal. Do simulations forthe following percentages of modulation: 1. 25% 2. 50% 3. 100% and4.125%. In your report you should include the plots for themodulated signal in time and for the spectrum of the modulatedsignal for each of the 4 cases.
Discuss the results relative to the modulation index m.
SSB:
Use Matlab to implement a 4 pole-pair Butterworth band-passfilter to select the lower frequency component of the DSB modulatedsignal in part a. Plot the signal at the output of the filter intime and its spectrum.