Professional Documents
Culture Documents
323 Proj 2
323 Proj 2
323 Proj 2
Consider the continuous-time signal x(t) = cos(2f t). If x(t) is sampled at a rate of
fs Hz, the resulting discrete-time signal is given by
x[n] = x(t)|t=n/fs
2f
= cos n
fs
= cos (n)
sin(fs t)
p(t) = (2)
fs t
Assume that x(t) is a 1 Hz sinusoid, i.e. f = 1 Hz. Write a MATLAB function that
takes fs as an input and returns on the same Figure (with the appropriate labels
and legends):
The samples x[n] of x(t)
The reconstructed x(t) using band-limited interpolation
The following items should be submitted:
Organized and commented MATLAB code
The resulting Figure when x(t) is undersampled (fs < 2f ) and when x(t) is
oversampled (fs > 2f )
A short discussion of the results