Problem - Write a Matlab program to simulate 2PAM baseband digital transmitter with truncated Sine pulse. The 2PAM signal corresponds to
X(t) = i=0∑N-1Adip(t - iTs) (1)
where A is the signal amplitude, di is the ith data symbol, p(t) is the pulse shape, and Ts is the symbol duration.
Please use a truncated sine pulse g(t) = sine(1/Ts) with five sidelobes on the left and five sidelobes on the right as the pulse shape for the 2PAM transmitter.
Procedure:
(1) input a character string from the keyboard;
(2) convert the characters into their ASCII codes (7 bits per character);
(3) create a 2PAM signal of these information bits with symbol duration Ts and truncated sine pulse;
(4) plot the 2PAM signal;
(5) plot the spectrum of this 2PAM signal.
In your project report, please include all Matlab programs (as appendix), plots and your discussion.