0% found this document useful (0 votes)
39 views8 pages

Digital Signal Processing Assignment

Dsp question

Uploaded by

g47009678
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views8 pages

Digital Signal Processing Assignment

Dsp question

Uploaded by

g47009678
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Khwopa Engineering College

Department of Electronics and Communication


Digital Signal Processing
Assignment
Question No. 1
Sketch the following sequences:
a. 𝑥(𝑛) = 3𝛿(𝑛 + 2) − 0.5𝛿(𝑛) + 5𝛿(𝑛 − 1) − 4𝛿(𝑛 − 5)
b. 𝑥(𝑛) = 𝛿(𝑛 + 1) − 2𝛿(𝑛 − 1) + 5𝑢(𝑛 − 4)
Question No. 2
Determine which of the following sinusoidal signals are periodic and compute their fundamental period.
a. 𝑥(𝑛) = cos (0.01𝑛)
b. 𝑥(𝑛) = sin (3𝑛)

c. 𝑥(𝑛) = sin ( )
 
d. 𝑥(𝑛) = cos + sin

e. 𝑥(𝑛) = 𝑠𝑖𝑛
f. 𝑥(𝑛) = 𝑒

Question No. 3
Show that a complex exponential signal 𝑥(𝑛) = 𝑒  is periodic only if =fd is rational number..

Question No. 4
Determine whether the following signals are power signals, energy signal or neither.
a. 𝑥(𝑛) = nu(n)
b. x(n) = 𝑢(𝑛)

c. 𝑥(𝑛) = cos
( )
d. 𝑥(𝑛) = 𝑒

Question No. 5
for each of the following input output relationships, determine whether the corresponding system is
linear, time invariant and causal.
a. 𝑦(𝑛) = 5𝑥(𝑛) + 2𝑥 (𝑛)
b. 𝑦(𝑛) = 𝑥(𝑛 − 1) + 4𝑥(𝑛)
c. 𝑦(𝑛) = 4𝑥 (𝑛 − 1) − 2𝑥(𝑛)
d. 𝑦(𝑛) = 2x(n) − 3
e. 𝑦(𝑛) = nx(n)
f. 𝑦(𝑛) = −5𝑥(𝑛 − 10)
g. 𝑦(𝑛) = 4𝑥(𝑛 )
Question No. 6
Determine which of the following linear systems is causal:
a. 𝑦(𝑛) = 0.5𝑥(𝑛) + 100𝑥(𝑛 − 2) − 20𝑥(𝑛 − 10)
b. 𝑦(𝑛) = 𝑥(𝑛 + 4) + 0.5𝑥(𝑛) − 2𝑥(𝑛 − 2)
c. 𝑦(𝑛) = 0.5𝑥(𝑛) + 20𝑥(𝑛 − 2) − 0.1𝑥(𝑛 − 1)
d. 𝑦(𝑛) = 𝑥(𝑛 + 2) − 0.4𝑥(𝑛 − 1)
e. 𝑦(𝑛) = 𝑥(𝑛 − 1) + 0.5𝑥(𝑛 + 2)
Question No. 7
Determine stability for the following linear system:
𝑦(𝑛) = 0.5𝑥(𝑛) + 100𝑥(𝑛 − 2) − 20𝑥(𝑛 − 10)
Question No. 8
Determine stability for each of the following linear systems:
a. 𝑦(𝑛) = ∑ 0.75 𝑥(𝑛 − 𝑘)
b. 𝑦(𝑛) = ∑ 2 𝑥(𝑛 − 𝑘)
Question No. 9
Given the sequence
2, 𝑘 = 0,1,2
ℎ(𝑘) = 1, 𝑘 = 3,4
0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
where 𝑘 is the time index or sample number.
a. Sketch the sequence ℎ(𝑘) and the reverse sequence ℎ(−𝑘).
b. Sketch the shifted sequences ℎ(−𝑘 + 2) and ℎ(−𝑘 − 3).
Question No. 10
Using the following sequence definitions
2, 𝑘 = 0,1,2 2, 𝑘 = 0,
ℎ(𝑘) = 1, 𝑘 = 3,4 and 𝑥(𝑘) = 1, 𝑘 = 1,2
0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒 0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
evaluate the digital convolution

𝑦(𝑛) = 𝑥(𝑘)ℎ(𝑛 − 𝑘)

a. using the graphical method;


b. using the table method;
c. applying the convolution formula directly.
Question No. 11
Given the sequence definitions
−2, 𝑘 = 0,1,2 2, 𝑘 = 0,
𝑥(𝑘) = 1, 𝑘 = 3,4 and ℎ(𝑘) = −1, 𝑘 = 1,2
0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒 0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
evaluate the digital convolution
𝑦(𝑛) = ℎ(𝑘)𝑥(𝑛 − 𝑘)

a. using the graphical method;


b. applying the convolution formula directly.

Question No. 12

Computer the convolution of the two discrete time signals x(n) = u(n) and h(n) = anu(n) ROC: |a|<1,
n>=0.

Question No. 13

Determine 8 point DFT of the following sequence

1 𝑓𝑜𝑟 − 3 ≤ 𝑛 ≤ 3
a. 𝑥(𝑛) =
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1 𝑓𝑜𝑟 𝑛 = 0
b. 𝑥(𝑛) = 0.5 𝑓𝑜𝑟 𝑛 = 1
0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒

Question No. 14

Use radix 2 decimation in frequency FFT algorithm. 𝑥(𝑛) = , , , , 0,0,0,0

Question No. 15
The first five points of 8-point DFT of a real valued sequence are { 0.25, 0.125-j0.3018, 0, 0.125-j0.0518,
0 }. Determine the remaining three points.

Question No. 16
Use the 4-point DFT and IDFT to determine the circular convolution of the following sequences
𝑥(𝑛) = {1, 2, 3, 4}
ℎ(𝑛) = {4, 3, 2, 2}

Question No. 17
Given the two sequences of length 4 as under:
𝑥(𝑛) = {0, 1, 2, 3}
ℎ(𝑛) = {2, 1, 1, 3}
compute the circular convolution.

Question No. 18

We use the DFT to compute the amplitude spectrum of a sampled data sequence with a sampling
rate 𝑓 = 2,000 Hz. It requires the frequency resolution to be less than 0.5 Hz. Determine the number
of data points used by the FFT algorithm and actual frequency resolution in Hz, assuming that the data
samples are available for selecting the number of data points.

Question No. 19

Given the sequence in Figure shown below


𝒙(𝒏)
5
4 4
4
3 2 2
2 1
1 1 5 𝒏
0 2 3 4 6
--1
1 -1
-1
-2 𝑻𝟎 = 𝑵𝑻

and assuming that the sampling rate is 𝑓 = 100 Hz, Compute the amplitude spectrum, phase spectrum,
and power spectrum.
Question No. 20
Given eight samples values 𝑥(0), 𝑥(1), … , 𝑥(7), draw a diagram to compute the DFT of given sequence
a. using the decimation-in-frequency FFT method and
b. using the decimation-in-time FFT method.
Question No. 21
Given eight DFT coefficient values 𝑋(0), 𝑋(1), … , 𝑋(7), draw a diagram to compute the inverse DFT of
given sequence
a. using the decimation-in-frequency FFT method and
b. using the decimation-in-time FFT method.
Question No. 22
Given a sequence 𝑥(𝑛) for 0 ≤ 𝑛 ≤ 3, where 𝑥(0) = 4, 𝑥(1) = 3, 𝑥(2) = 2, and 𝑥(3) = 1. Evaluate its
DFT 𝑋(𝑘),
a. using the decimation-in-frequency FFT method,
b. using the decimation-in-time FFT method,
c. also determine the number of complex multiplications in part (a) and (b) above.
Question No. 24
Compute the eight-point DFT of the sequence
1 0≤𝑛≤7
𝑥(𝑛) =
0 otherwise
a. using the decimation-in-frequency FFT method and
b. using the decimation-in-time FFT method.
Question No. 25
Compute the eight-point inverse DFT of the sequence made up of DFT coefficients 𝑋(𝑘) as
𝑋(0) = 4, 𝑋(1) = 1 − 𝑗 1 + √2 , 𝑋(2) = 0, 𝑋(3) = 1 − 𝑗 1 − √2 ,
𝑋(4) = 0, 𝑋(5) = 1 + 𝑗 1 − √2 , 𝑋(6) = 0, 𝑋(7) = 1 + 𝑗 1 + √2 ,
a. using the decimation-in-frequency FFT method and
b. using the decimation-in-time FFT method.
Question No. 26
Compute the eight-point inverse DFT of the sequence made up of DFT coefficients 𝑋(𝑘) as
𝑋(0) = 0.125, 𝑋(1) = 0.125, 𝑋(2) = 0.125, 𝑋(3) = 0.125,
𝑋(4) = 0.125, 𝑋(5) = 0.125, 𝑋(6) = 0.125, 𝑋(7) = 0.125
c. using the decimation-in-frequency FFT method and
d. using the decimation-in-time FFT method.
Question No. 27
Compute the eight-point DFT of the sequence
𝑥(0) = 1, 𝑥(1) = 1, 𝑥(2) = 1, 𝑥(3) = 1,
𝑥(4) = 0, 𝑥(5) = 0, 𝑥(6) = 0, 𝑥(7) = 0,
c. using the decimation-in-frequency FFT method and
d. using the decimation-in-time FFT method.

Question No. 28
Find the z-transform for each of the following sequences (from the definition of the z-transform),
a. 𝑥(𝑛) = 4 𝑢(𝑛)
b. 𝑥(𝑛) = (−0.7) 𝑢(𝑛)
c. 𝑥(𝑛) = 4 𝑒 𝑢(𝑛)
d. 𝑥(𝑛) = 4 (0.8) cos(0.1𝜋𝑛) 𝑢(𝑛)
e. 𝑥(𝑛) = 4 𝑒 sin(0.1𝜋𝑛) 𝑢(𝑛)
Question No. 29
Using the properties of the z-transform, find the z-transform for each of the following sequences
a. 𝑥(𝑛) = 𝑢(𝑛) + (0.5) 𝑢(𝑛)
b. 𝑥(𝑛) = 𝑒 ( ) cos 0.1𝜋(𝑛 − 4) 𝑢(𝑛 − 4),
where 𝑢(𝑛 − 4) = 1 for 𝑛 ≥ 4 and 𝑢(𝑛 − 4) = 0 for 𝑛 < 4.
Question No. 30
Given two sequences
𝑥 (𝑛) = 5 𝛿(𝑛) − 2 𝛿(𝑛 − 2)
𝑥 (𝑛) = 3 𝛿(𝑛 − 3)
a. determine the z-transform of convolution of the two sequences using the convolution property
of the z-transform,
𝑋(𝑧) = 𝑋 (𝑧)𝑋 (𝑧)
b. determine convolution by the inverse z-transform from the result in part (a),
𝑥(𝑛) = 𝑍 𝑋 (𝑧)𝑋 (𝑧)
Question No. 31
Using the z-transform properties, find the inverse z-transform for each of the following functions,
a. 𝑋(𝑧) = 4 − −
.
b. 𝑋(𝑧) = ( )
+( )
+(
. )
c. 𝑋(𝑧) =
.

d. 𝑋(𝑧) = +( )
+𝑧 +
.
e. 𝑋(𝑧) = log(1 + 𝑎𝑧 ) , |𝑧| ≥ |𝑎|
f. 𝑋(𝑧) = with ROC 1<|z|<2
( . )( )( )

g. 𝑋(𝑧) = ( )
if i. ROC: |z|>1, ii. ROC: |Z|<0.5, iii. ROC: 0.5<|z|<1
. .

h. 𝑋(𝑧) = ( )( )

i. 𝑋(𝑧) =

Question No. 32
Using the partial fraction expansion method, find the inverse z-transform for each of the following
functions,
a. 𝑋(𝑧) =
. .
b. 𝑋(𝑧) = (
. )( . )
c. 𝑋(𝑧) = (
. )( . )
( . )
d. 𝑋(𝑧) = (
. ) ( . )

Question No. 33
Consider the system

1
+ 𝑧 𝑧
𝐻(𝑧) = 2
3 2
1− 𝑧 + 𝑧
5 25
Determine the following
a. The impulse response
b. The zero-state step response
c. The step response if y(-1) = 1 & y(-2) =2.
Question No. 34
A discrete time system is characterized by the difference equation 𝑦(𝑛) − 0.5𝑦(𝑛 − 1) = 𝑥(𝑛) −
0.5𝑥(𝑛 − 1) find y(n) for n>=0, when x(n) = u(n) and the initial condition is given as y(-n)=1

Question No. 35
A system is described by the difference equation
𝑦(𝑛) + 0.5𝑦(𝑛 − 1) = 2 (0.8) 𝑢(𝑛)
determine the solution when the initial condition is 𝑦(−1) = 2.
Question No. 36
A system is described by the difference equation
𝑦(𝑛) − 0.5𝑦(𝑛 − 1) + 0.06 𝑦(𝑛 − 2) = (0.4) 𝑢(𝑛 − 1)
determine the solution when the initial condition are 𝑦(−1) = 1 and 𝑦(−2) = 2.
Question No. 37
Given the following difference equation with the input-output relationship of a certain initially relaxed
system (all initial conditions are zero),
𝑦(𝑛) − 0.7𝑦(𝑛 − 1) + 0.1 𝑦(𝑛 − 2) = 𝑥(𝑛) + 𝑥(𝑛 − 1)
a. find the impulse response sequence 𝑦(𝑛) due to the impulse sequence 𝛿(𝑛).
b. find the output response of the system when the unit step function 𝑢(𝑛) is applied.
Question No. 38
Given the following difference equation with the input-output relationship of a certain initially relaxed
DSP system (all initial conditions are zero),
𝑦(𝑛) − 0.4𝑦(𝑛 − 1) + 0.29 𝑦(𝑛 − 2) = 𝑥(𝑛) + 0.5𝑥(𝑛 − 1)
a. find the impulse response sequence 𝑦(𝑛) due to the impulse sequence 𝛿(𝑛).
b. find the output response of the system when the unit step function 𝑢(𝑛) is applied.
Question No. 39
Given the following difference equation,
𝑦(𝑛) = 0.5 𝑥(𝑛) + 0.5 𝑥(𝑛 − 1)
f. Find the transfer function 𝐻(𝑧);
g. Determine the impulse response 𝑦(𝑛) if the input is 𝑥(𝑛) = 4 𝛿(𝑛);
h. Determine the step response 𝑦(𝑛) if the input is 𝑥(𝑛) = 10 𝑢(𝑛).
Question No. 40
Convert each of the following transfer functions into its difference equation
– .
(a) 𝐻(𝑧) =
. .
. .
(b) 𝐻(𝑧) =

Question No. 41
Convert each of the following transfer functions into its pole-zero form
1 – 0.16 𝑧
𝐻(𝑧) =
1 + 0.7 𝑧 + 0.1 𝑧

Question No. 42
Given each of the following transfer functions describe digital systems, sketch the z-plane pole-zero plot
and determine the stability status for the digital system.

( . )
(a) 𝐻(𝑧) = ( )(
. . )
.
(b) 𝐻(𝑧) = (
. )( )
( . )
(c) 𝐻(𝑧) = (
. )( . )
.
(d) 𝐻(𝑧) = ( )( ) ( )
.

Question No. 43
Given the following digital system with a sampling rate of 8000 Hz,

𝑦(𝑛) = 0.5 𝑥(𝑛) + 0.5𝑥(𝑛 − 2)

c. Determine the frequency response of the system;


d. Calculate and plot the magnitude and phase frequency responses;
e. Determine the filter type, based on the magnitude frequency response.
Question No. 44
Given the following digital system with a sampling rate of 8000 Hz,

𝑦(𝑛) = 𝑥(𝑛) − 0.5𝑦(𝑛 − 2)

a. Determine the frequency response of the system;


b. Calculate and plot the magnitude and phase frequency responses;
c. Determine the filter type, based on the magnitude frequency response.
Question No. 45
Given the following difference equation for a digital system,

𝑦(𝑛) = 𝑥(𝑛) − 2 cos(𝛼) 𝑥(𝑛 − 1) + 𝑥(𝑛 − 2) + 2 𝛾 cos(𝛼) − 𝛾

where 𝛾 = 0.8 and 𝛼 = 60°,


a. Find the transfer function 𝐻(𝑧);
b. Plot the poles and zeros on the z-plane with the unit circle;
c. Determine the stability of the system from the pole-zero plot;
d. Calculate the amplitude (magnitude) frequency response of 𝐻(𝑧);
e. Calculate the phase frequency response of 𝐻(𝑧);
Question No. 46
Given the first-order IIR system
1– 2𝑧
𝐻(𝑧) =
1 − 0.5 𝑧

Realize 𝐻(𝑧) and develop the difference equations using the following forms:

Common questions

Powered by AI

For the complex exponential signal \(x(n) = e^{j\omega n}\), the signal is periodic if \(\frac{\omega}{2\pi} = \frac{p}{q}\), where \(p\) and \(q\) are integers with no common factors (i.e., the fraction is in its lowest terms). For \(x(n) = e^{j7\pi n}\), \(\omega = 7\pi\). Thus, \(\frac{7\pi}{2\pi} = \frac{7}{2}\) is not rational because 7 and 2 have no common factors to make it an integer, so the signal is aperiodic and does not have a fundamental period .

The zero-state step response is found by applying a step function \( u(n) \) at the input which transforms to \( X(z) = \frac{1}{1-z^{-1}} \) in the z-domain. Compute \( Y(z) = H(z)X(z) = \frac{1}{1 - 0.7z^{-1} + 0.1z^{-2}} \cdot \frac{1}{1-z^{-1}} \), and perform partial fraction expansion to invert back into the time-domain sequence \( y(n) \). Solve recurrence formulas deduced from inverse transform, iteratively through n-values, generating sequence reflecting step's impact under system transfer dynamics .

Apply partial fraction expansion on \( X(z) = \frac{1}{z^2 - 0.3z - 0.04} \), factorize denominator recognizing quadratic decomposition or use root-finding. Re-express \( X(z) \) as unions of simple pole residues allowing direct inverse transform via tables or formula application, typically reflecting as power-series or finite-time recurrence relation. The poles using quadratic formula solutions deliver parts retained in individual inverse forms, subsequently calculated for returning discrete-time behavior .

For impulse input \(x(n) = \delta(n)\), solve the homogeneous part of the difference equation \( y_h(n) - 0.7y_h(n-1) + 0.1y_h(n-2) = 0 \) for characteristic roots, determining \(y_h(n)\) form, then substitute impulse input in the particular solution of the difference equation. The complete solution \(y(n)\) at \(n=0\) starts at the impulse magnitude adjusted by initial conditions. Follow iterative stepping through \(n=1, n=2, \ldots\) using the difference equation to maintain impulse alteration through formulae .

The system \(y(n) = 4x(n^2)\) is non-causal, as the output at time \(n\) depends on future values of the input unless \(n\) is an integer with a finite past value. Linearity fails since input scaling does not produce proportionately scaled output due to the squaring operation \((n^2)\). Time invariance is violated because shifting the input in time \(x(n-k)\) does not result in an equivalent time shift in the output \(4x((n-k)^2)\), altering the functional relationship due to the squared term, confirming it is not time-invariant .

The eight-point DFT of \(x(n) = 1\) for \(0 \leq n \leq 7\), zero elsewhere, uses the decimation-in-frequency FFT method by decomposing the sequence into even and odd indexed samples, computing intermediary DFT stages. Iteratively combine stages of FFT twiddle factors adjusting phase angles per subdivided-length matrices, demanding reduced arithmetic operations exponentially descending through bit-reversal table stages. Finally, produce full frequency-resolution bins \(X(k)\) reflecting amplitudes given original sequences’ symmetry and setting towards final full-spectrum synthesis .

Stability of a linear system depends on the bounded input bounded output (BIBO) criterion. A system is stable if every bounded input produces a bounded output. Here, \(y(n) = 0.5x(n) + 100x(n-2) - 20x(n-10)\) implies a finite sum of weighted, delayed inputs. The system's stability depends on whether these coefficients and delays maintain output bounds when input is bounded. Despite potentially large coefficients such as 100 and -20, as these are static responses, each component remains finite, thus the system can remain stable if the input \(x(n)\) itself remains bounded over all time .

The system is described by a first-order difference equation. To solve for \(y(n)\) when \(x(n) = u(n)\), consider initial conditions and apply the method of solving difference equations by homogeneous and particular solutions. The homogeneous solution \(y_h(n)\) is found considering \(y(n) - 0.5y(n-1) = 0\), with solution form \(y_h(n) = C(0.5)^n\). For particular solution with the step input \(x(n) = u(n)\), let \(y_p(n) = A\), and solve: Substitute \(y_p(n) = A\) to find \(A\). Using initial condition \(y(-1) = 1\), solve for the constant \(C\). Combine homogeneous and particular solutions for the complete response \(y(n)\).

Evaluate the DFT of \(x(n) = \{1, 1, 1, 1, 0, 0, 0, 0\}\) via decimation-in-time FFT by dividing the sequence into segments executing FFT recursively merged through smaller-sample DFT computation stages. The symmetry inherent produces real data segment cuts into radix-two rectangles facilitating post-reconstruction depth of frequency versus periodicity conversion in spectrum domain, reflecting dominant frequency components linking back to inherent cyclic time domains, offering periodic insights. This FFT analysis yields insight about harmonic sets representing main spectral peaks informed contextually .

To compute the digital convolution \(y(n) = \sum x(k)h(n-k)\) using the graphical method, first graph the sequence \(x(k)\) and \(h(k)\). Reverse \(h(k)\) to get \(h(-k)\), shift it by \(n\) to get \(h(n-k)\), and slide it across \(x(k)\). At each integer \(n\), compute the sum \(y(n) = \sum_k x(k)h(n-k)\) by overlapping and multiplying corresponding samples of the sequences and summing their products. For example, using \(x(k) = \{2, 1, 0\}\) and \(h(k) = \{2, 1, 1, 0\}\), calculate \(y(n)\) at each \(n\) starting by reversing and shifting \(h\) and evaluating overlaps .

You might also like