9. Matlab-Convolution
Write a Matlab script file to compute the convolution in Problem 8. Your script file should:
a) plot xt
b) plot ht
c) plot yt = xt * ht
Note: Use the Matlab function conv to compute a numerical approximation of the convolution integral.
10. Matlab-Component of a Signal
Write a Matlab script file to approximate xt in terms of yt, where xt ~ c * yt for 0 < t < 1. Your script file should:
a) compute c that minimizes the energy of the error signal et = t - ct, for 0 < t < 1
b) compute the energy of the error et, for 0 < t < 1
c) plot xt
d) plot yt
e) plot cyt
Note: Use Matlab to compute numerical approximations of the integrals in items (a) and (b).
x(t)
y(t) = sin(Tt), for 0 < t < 1
Figure 5. Square pulse and half-cycle sinusoidal pulse yt