Write a MATLAB program to:
i. Plot the magnitude spectrum of each signal (use the MATLAB stem plot).
ii. Plot the signal and its reconstruction using N = 5, N = 10, and N = 100 terms, i.e., xN(t) = a0 + ΣN k=1 ...
iii. Calculate the power of xN(t) for N = 5, N = 10, and N = 100.
(e) Verify Parseval's theorem by comparing the signal power to the power of xN(t).
t x(t)
1 5
3 -1
0 1
3 t
-1 x(t)
1 -10
10T xt
6 4T
2T 0
2T 4
6nt