Professional Documents
Culture Documents
HW7
HW7
HOMEWORK ASSIGNMENT #7
Assigned: Mar 24, 2024
Due: Mar 29, 2023
2. Frequency Response II: Suppose that three systems are connected in cascade, where the output of S1 is the
input of S2, and the output of S2 is the input of of S3. The three systems are specified as follows:
S1 = x1 [𝑛] − x1 [𝑛 − 2]
S2 = x2 [n] + x2 [n-2]
S3 = x3 [n-1] + x3 [n-2]
Where the output of Si is yi[n] and its input is xi[n].
a. Determine the frequency response of the three individual systems.
b. Determine the overall frequency response of the cascade system as a simple formula.
c. Determine the difference equation of the equivalent system. Thus, x[n] is x1[n] and y[n] is y3[n].
3. Creating and Applying Filters. Download and load into MATLAB the file HW7Problem3.mat. The
file contains a signal x and sampling frequency fs.
4. Secret Message from the Boss. Your supervisor has encoded a secret message for you in an audio
recording using AM modulation and interference so no one else can hear it. Download the file
HW7Problem4.mat, which has the variables x,fs and h2. h2 is the impulse response of one of the
filters you need. Apply the following systems to the input signal x to get the audio message y. You will
need to create the filter h1 on your own. Use sound(y, fs) to listen to the message. Submit an audio file of
the message signal y.
Hints:
• You can listen to the signal at any point using sound(y, fs)
• To do the multiplication in the mixer you will have to create a time vector of right length and with Δt=1/fs
• If you do all steps correctly you should not only hear a clear voice but also a phone ring in the
background at the beginning.