Part 1. Single-tone Modulation a –Write the code for an m-file(script) to generate a single tone FM signal. The modulating(message) signal is a single tone signal with frequency 1kHz andthe carrier frequency is 20kHz. Vary the modulation index as m=0.2;0.5; 1; 5 and 10. Plot your original message signal and themodulated signal for each value of m. Discuss the results. Usecosine function to define the message signal.
b- Repeat the part above only that this time generate a singletone PM signal. Compare the plots in parts a and b.