Matlab PAM PWM PPM sketch

Matlab implementation:
1. Assume the train of pulses frequency and any other required parameters.
2. Use a single tone signal as a modulating signal. Plot this signal in time domain and plot its frequency spectrum.
3. Plot the modulated signal (PAM, PWM and PPM) in time domain and its frequency spectrum.