Sale!

Solved FALL 25 EC516 Homework 03

$30.00 $21.00

Original Work ?

Download Details:

  • Name: Assignment-3-hnrm5u.zip
  • Type: zip
  • Size: 6.38 MB

Category: Tags: , , You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

Rate this product

Problem 2.1 (Fractional Digital Sampling)
Suppose we are interested in preserving analog frequencies up to 10Khz while sampling a realvalued analog signal π‘₯(𝑑) to produce a digital signal π‘₯[𝑛]. Initially, we use analog sampling with
a sampling frequency of 50 KHz and an analog antialiasing filter (with a flat gain of 1.0 up to
10Khz and a gradual tapering of its gain down to 0.0 at frequencies beyond 25KHz) to produce a
signal 𝑔[𝑛].
(a) By what factor would you downsample the initial analog sampling result 𝑔[𝑛] to
produce the desired signal π‘₯[𝑛]?
(b) Explain how you would use operations of sampling rate change and ideal lowpass digital
filtering to produce π‘₯[𝑛] from 𝑔[𝑛]. You must specify the sampling rate changes that
would be employed and the cutoff frequencies of any filters employed in your proposed
solution.
Problem 2.2 (z-transform Basics)
PART: A
Let π‘₯[𝑛] be a discrete time signal with z-transform 𝑋(𝑧) = βˆ‘ π‘₯[𝑛]𝑧 1 /0 02/1
(a) Show that π‘₯[𝑛 βˆ’ 𝑛4] has z-transform 𝑧/05𝑋(𝑧)
(b) Show that π‘₯[βˆ’π‘›] has z transform 𝑋(𝑧/6)
(c) Show that π‘₯βˆ—[𝑛] has z-transform π‘‹βˆ—(π‘§βˆ—)
(d) Show that π‘₯[𝑛] βˆ— β„Ž[𝑛] has z-transform 𝑋(𝑧)𝐻(𝑧)
PART B:
Determine the z-transform of each of the following signals and the corresponding region of
convergence in each case, the values of |𝑧| for which 𝑋(𝑧) converges. You may use 𝑋(𝑧) =
βˆ‘ π‘₯[𝑛]𝑧 1 /0 02/1 , the Finite Sum Formula and/or the Infinite Sum Formula.
(a) π‘₯[𝑛] = 𝛿[𝑛 βˆ’ 3]
(b) π‘₯[𝑛] = 𝑒[𝑛] βˆ’ 𝑒[𝑛 βˆ’ 5]
(c) π‘₯[𝑛] = (0.25)0𝑒[𝑛]
(d) π‘₯[𝑛] = (0.25)0/6𝑒[𝑛 βˆ’ 1]
(e) π‘₯[𝑛] = (0.25)0𝑒[𝑛 βˆ’ 1]
(f) π‘₯[𝑛] = (0.25)0𝑒[𝑛] + (0.5)0𝑒[𝑛]
(g) π‘₯[𝑛] = (0.25)0cos (0.25πœ‹π‘›)𝑒[𝑛]
Problem 2.3 (Practical Filter Implementation)
Consider a digital filter with impulse response β„Ž[𝑛] which is zero for n<0 and whose input π‘₯[𝑛]
and output 𝑦[𝑛] are related through the following difference equation:
𝑦[𝑛] = 0.25𝑦[𝑛 βˆ’ 2] + π‘₯[𝑛]
By noting that the impulse response β„Ž[𝑛] is the output of the digital filter when the input is 𝛿[𝑛],
use the above difference equation to determine the numerical values of
β„Ž[0], β„Ž[1], β„Ž[2], β„Ž[3] & β„Ž[1001]. Justify your answers
Problem 2.4
PART A:
Calculate the convolution in each of the following cases and show your work:
a) and
b) and
c) and
d) and
e) and
PART B:
Sketch the phase of the DTFT of . Justify your answer.
PART C:
Sketch the magnitude and the phase of the DTFT of the signal , where
. Show your work.
PART D:
a) Show that if has DTFT , then has DTFT
b) Show that a real and even has a real and even DTFT .
c) Show that a real and odd has an imaginary and odd DTFT .
y[n] = x[n]βˆ— h[n]
x[n] = u[n]βˆ’ u[n βˆ’5] h[n] = 0.5Ξ΄[n βˆ’3]
x[n] = n{u[n βˆ’1]βˆ’ u[n βˆ’5]} h[n] = 2Ξ΄[n +3]
x[n] = u[n]βˆ’ u[n βˆ’5] h[n] = u[n]βˆ’ u[n βˆ’5]
x[n] = u[n]βˆ’ u[n βˆ’5] h[n] = u[n]βˆ’ u[n βˆ’3]
x[n] = u[n]βˆ’ u[n βˆ’5] h[n] = u[n]
x[n] = u[n]βˆ’ u[n βˆ’ 4]
r[n] = x[k]x[n βˆ’ k]
k=βˆ’βˆž
∞
βˆ‘
x[n] = u[n]βˆ’ u[n βˆ’6]
x[n] X (e jΟ‰ ) x[n βˆ’ n0 ] e
βˆ’ jΟ‰0 X (e jΟ‰ )
x[n] X (e jω )
x[n] X (e jω )
Experiential DSP Exercise 03
A. Record and Load!
a. Open the MATLAB software.
b. Set these variables: Fs = 16000; nBits = 16; nChannels = 1;
c. Create an audio recorder object using the recObj = audiorecorder (Fs, nBits,
nChannels) command and pass the defined variables in step b to it.
d. Use the record(recObj) command to start recording. In the recording, you need to
say: β€œSix students went to school”.
e. Write the command pause. With this command, you can stop recording by pressing any
key on your keyboard.
f. Use the stop(recObj) command to stop recording.
g. Get the recorded data using by getaudiodata(recObj) command.
h. Save the recorded audio using the audiowrite (filename, audioData, Fs);
choose filename as: audio.wav.
i. Read the audio and sampling rate using the audioread command. (Note that this
command gives you two outputs, x and F)
B. Digital Upsampling
a. Set U = 4. Create isr_x = upsample (x, U). This upsample Matlab command
is badly named because it does not upsample a signal, rather it merely increases the
sampling rate by a factor of 4 with three zero-valued samples inserted between each pair
of consecutive samples of x. To obtain the digitally upsampled signal we will have to pass
isr_x through an interpolation filter (see steps c and d below).
b. Create a stem plot of x and isr_x in two separate figures. Let’s call the figures β€œOriginal”
and β€œIncreasedSR” for future reference.
c. Load the given non-ideal interplolation filter load (‘filter1.mat’, ‘b’); Pass
the IncreasedSR signal through the loaded filter: upsampled_x = filter (b, 1,
isr_x);
d. Create a stem plot of upsampled_x. Let’s call this figure β€œUpsampled”.
e. Now comment on the differences between the β€œOriginal,” β€œIncreasedSR,” and β€œUpsampled”
figures.
C. Digital Downsampling
a. Load the antialiasing filter: load (β€˜filter2.mat’, β€˜b’). Pass the upsampled
signal upsampled_x from Part B above through this digital antialiasing filter:
filtered_upsampled_x = filter (b, 1, upsampled_x).
b. Set D = 4, create downsampled_upsampled_x = downsample
(filtered_upsampled_x, D). The downsample Matlab command is badly
named because it does not downsample, rather it merely decreases the sampling rate
without first applying a digital anti-aliasing filter.
c. Create a stem plot of downsampled_upsampled_x. Is it the same as β€œOriginal”?
Explain why there might be differences.