Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

DIGITAL SIGNAL PROCESSING

TASK 1
L1 + L2

SUBMITTED BY:

D. SHIVANI REDDY(17BEC0171)
SHRESHTH SRIVASTAVA (17BEC0340)
ANANYA.K .R ( 17BEC0857 )

Faculty: Shweta B Thomas


OBJECTIVE:

Let the input signal to a system is sin(2πft) with 15 Hz base band frequency. The input signal is sampled at
3 times of the base band signal frequency. The impulse response of the system is h(n). Study the response
of the system considering first four samples of the input signal for the following conditions:
1. h(n) = [2 1 4].
2. h(n) = u(n).
3. Compare the responses (use subplot).

ALGORITHM:

 Input signal = sin(2πft)


 Baseband frequency (f) = 15 Hz
 Sampling frequency (Fs) = Fm*3
 Time period (t) = (0: dt:3*dt);
 Define h1(n) and h2(n)
 x(n)*h(n) = y(n)
 Plot both the responses

PROGRAM:
MANUAL CALCULATION:
INFERENCE AND EXPERIMENT RESULT:
Input signal x(n) when convoluted with the impulse response h(n) gives y(n)
x(n)*h(n)= y(n)
For h(n) = [2 1 4] y(n)= [0 1.7321 -0.8660 2.5981 -3.4641 -0.0000]
For h(n) = u[n] y(n)= [0 0.8660 0.0000 0.0000 …. - 0.8660 0.0000]

For h(n)= u(n) :


Since u(n) ranges from zero to infinity, the 2nd last element of y(n) i.e., -0.8660 should theoretically
never occur. Therefore, in the plotted graph u(n) is ranged only till 20, so that the 2nd last element is
plotted.

You might also like