Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
50% found this document useful (2 votes)
5K views

DSP Lab External Questions

The document contains 15 questions that ask to write MATLAB and C programs to perform digital signal processing tasks like calculating the DFT, verifying the sampling theorem, designing filters, calculating impulse responses, and performing various types of convolutions. The tasks involve both time and frequency domain analysis of discrete-time signals and systems.

Uploaded by

haris_j
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
5K views

DSP Lab External Questions

The document contains 15 questions that ask to write MATLAB and C programs to perform digital signal processing tasks like calculating the DFT, verifying the sampling theorem, designing filters, calculating impulse responses, and performing various types of convolutions. The tasks involve both time and frequency domain analysis of discrete-time signals and systems.

Uploaded by

haris_j
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

(a) Write a MATLAB program to calculate the 8-Point DFT of sequence x[n] =
{1,2,3,2,1,3,4,1}. Plot its Magnitude and Phase.

(b) Write a C program to verify the above program for 8-DFT of the sequence given above.

2.(a) Write a MATLAB program to verify the Sampling Theorem.


(b) Write a C Program in Code Composer Studio to verify the Linear Convolution of x[n]
={1,2,3,4,5} and h[n] = {1,2,2,3,3,4,4}

3.(a) Solve the difference equation given by y[n] - (1/4)y[n-1] = x[n], if the input to the
system is x[n] = u[n]-u[n-10]. Write a MATLAB program to verify the answer and plot
the output y[n].
(b) Write a C Program in Code Composer Studio to verify the Circular Convolution of x[n]
= {1,2,3,1} and h[n] = {1, 1,1,1,1}

4.(a) Write a Matlab program to calculate the Autocorrelation and Energy of a sequence
x[n]={1,2,1,3,1,4,1,5}, and hence, verify the Energy and Symetry properties of the
Autocorrelation function.

(b) Write a MATLAB program to design an FIR “LOW PASS” filter with the following
specifications: Fsamp=8000Hz, Fpass=1500Hz, Twidth=100Hz, Astop=40. Use
Blackman Widow for Coefficient generation.

5.(a) Calculate the Impulse and Step Responses of a system described by the difference
equation: y[n] = 0.5*x[n] + (2/5) y[n-1] + 1.5*x[n-1]; The initial conditions for
x(-1)= 3, y(-1)=4; Verify and plot the outputs in MATLAB.

(b) Write a MATLAB program to calculate the circular convolution of x[n]={1,5,3,2,7,6}


and h[n] = {1, 2, 1, 3} in Time Domain.

6.(a) Write a MATLAB program to design an FIR “HIGH PASS” filter with the following
specifications: Fsamp=8000Hz, Fpass=1500Hz, Twidth=100Hz, Astop=40. Use
Blackman Widow for Coefficient generation.

(b) Write a Matlab program to calculate the Autocorrelation and Energy of a sequence
x[n]= {1,2,3,4,5,3} and hence, verify the Energy and Symetry properties of the
Autocorrelation function.

7.(a) Write a MATLAB program to calculate the Linear Convolution of two sequences x[n] =
{1,5,3,2,8,6,1} and h[n] = {1, 2, 1, 3,1} in Time Domain.
(b) Write a Matlab program to calculate the Autocorrelation and Energy of a sequence
x[n]= {1,2,3,4,5,3} and hence, verify the Energy and Symetry properties of the
Autocorrelation function.
8.(a) Write a MATLAB program to calculate the N-DFT of a sequence. Plot its Magnitude
and Phase.

(b) Calculate the impulse response of a system described by the difference equation y[n]=
x[n] + (1/2)x[n-1] +(1/4)x[n-2]; and hence, calculate the output of the system to the
input x[n] = (1/4)n u[n]. Verify the ouputs in MATLAB.

9.(a) Write a MATLAB program to design an FIR “BAND STOP” Filter for the following
specifications: Fc1=1500Hz, Fc2=2000Hz ,Fsamp=8000Hz, Twidth=200Hz. Use
Blackman Window for Co-efficient generation.
(b) Write a C Program to calculate the Impulse response of a system described by:
H(z)=1 / (1 – 0.27z-1)

10.(a)Solve the Difference Equation given by y[n] +2y[n-1] +y[n-2] = x[n]; with the initial
conditions y[-1]=2,y[-2]=4; when the input x[n] = (1/4) nu[n]. Verify the ouputs in
MATLAB.
(b) Write a MATLAB program to calculate the circular convolution of x[n]={1,5,3,2,7,6}
and h[n] = {1, 2, 1, 3} in Time Domain.

11.(a)Write a MATLAB program to calculate the Linear Convolution of two sequences x[n] =
{1,5,3,2,8,6,1} and h[n] = {1, 2, 1, 3,1} in the Frequency Domain.
(b) Write a C Program for the TMS 320C6713 DSK to implement Real Time Noise
Cancellation.

12.(a)Write a MATLAB program to design an FIR “BAND PASS” filter with the following
specifications: Fsamp=8000Hz, Fc1=1500Hz, Fc2=2000Hz Twidth=100Hz. Use
Rectangular Widow for Coefficient generation.

(b) Write a C Program to calculate the Impulse response of the system :


H(z)= Y(z)/X(z) =1/(1 – 0.25z-1);

13.(a)Write a C Program in Code Composer Studio to verify the Circular Convolution of x[n]
= {1,2,3,1} and h[n] = {1, 2, 2, 3,1}
(b) Verify the Ouput of the above program using Frequency Domain Calculations in
MATLAB.

14.(a) Write a MATLAB program to verify the Sampling Theorem.

(b) Write a MATLAB program to design an IIR Filter for the following specifications:
Fpass=500Hz, Fstop=2000Hz,Rp=3,Rs=30,Fsamp=8000Hz.

15.(a)Write a MATLAB Program to calculate the impulse response of the following transfer
function H(z) = (1+0.5z-1)/(1-0.25z-1)
(b) Write a C Program for the TMS 320C6713 DSK to implement Real Time Noise
Cancellation.

You might also like