Write a MATLAB program that simulates the generation of Amplitude Modulation.
Use the following values:
The message signal is a square function with an amplitude of 2 and a frequency of 10 Hz.
The amplitude of the carrier signal is 4.
The frequency of the carrier is 100 Hz.
The phase of the carrier is 36 degrees.
The program should run for 10 seconds, starting from 0 seconds.
The step size is 0.001.
The program must plot the message, the carrier, and the AM generated signal using subplots.
For each signal, use horizontal and vertical labeling and a title for the figure.