323 Proj 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

American University of Sharjah

Department of Electrical Engineering

ELE 323 - Signal Processing Fall 2017


MATLAB Assignment #1 Assigned: October 3, 2017
Due: October 19, 2017

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)

where . In order to avoid spectral aliasing (which would result in an


incorrect reconstructed signal), it is required that fs > 2f .
To reconstruct the original continuous-time signal x(t) from the discrete-time signal
x[n], a technique known as band-limited interpolation is used. Using this technique,
it can be shown that
 
X n
x(t) = x[n]p t (1)
n
fs
where

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

You might also like