Vous êtes sur la page 1sur 13

JAYPEE UNIVERSITY OF INFORMATION TECHNOLOGY WAKNAGHAT, DISTT. SOLAN (H.P.

)-173215

COURSE CODE: 07B51EC710 COURSE TITLE: DIGITAL SIGNAL PROCESSING LAB

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Course Description
Title of Course: Digital Signal Processing Lab Course Code : 07B51EC710 L-T-P : 0- 0-1 Credits :1 Semester : B. Tech.V SEM. Branch : ECE Prerequisite Students must have already basic knowledge of MATLAB and concept of signal operations. Objectives Develop problem solving ability using MATLAB, develop ability to express solutions to
problems clearly and precisely, develop ability to design and analyze the various digital signal processors such as digital filters.

Learning Outcomes
The students shall acquire the generic skills to understand, design and implement various signal operations such as convolution, circular convolution etc.

Course Content Generation of various signals using different operations with MATLAB.
Implementation of linear convolution with MATLAB Implementation of circular convolution with MATLAB Implementations of linear convolution using overlap add and overlap save methods with MATLAB Implementation of DFT and IDFT with MATLAB Implementation of various windows with MATLAB Implementation of various filters (FIR and IIR) with MATLAB.

Use of digital signal processor.

Evaluation Scheme Continuous evaluation : 70 marks Mid Sem Exam. P1 : 15 marks Mid Sem Exam. P2 : 15 marks Total : 100 marks

EXPERIMENT 1

Project 1: Random Signal A random signal of length N with samples uniformly distributed in the interval (0,1) can be generated by using the MATLAB command x = rand(1,N); Likewise, a random signal x[n] of length N with samples normally distributed with zero mean and unity variance can be generated by using the following MATLAB command x = randn(1,N); Questions: Q1 Write a MATLAB program to generate and display a random signal of length 100 whose elements are uniformly distributed in the interval [2, 2]. Q2 Write a MATLAB program to generate and display a Gaussian random signal of length 75 whose elements are normally distributed with zero mean and a variance of 3. Project 2: Signal Generation Q1 Generate a square waveform. Q2. Generate corresponding sawtooth waveform. Q3. Generate a waveform which is linear combination of sinusoids of frequencies 10, 100, 201, 453, 1024 Hz. Q4 Type the following program and explain what it is producing. n = 0:100; a = pi/2/100; b = 0; arg = a*n.*n + b*n; x = cos(arg); clf; stem(n, x); axis([0,100,-1.5,1.5]); title(Swept-Frequency Sinusoidal Signal); xlabel(Time index n); ylabel(Amplitude); grid; axis;

EXPERIMENT 2 Project 1 LTI System Q1. Generate different output for various inputs for the following LTI system y[n] = (1/3) (x[n] + x[n 1] + x[n 2]). Find what happens if we pass a signal having some low and high frequencies contained in it. NOTE: The MATLAB command y = impz(num,den,N) can be used to compute the first N samples of the impulse response of the causal LTI discrete-time system. Project 2 Convolution Q1 Calculate linear convolution of following two sequences
impulse response h = [3 2 1 -2 1 0 -4 0 3]; input waveform x = [1 -2 3 -4 3 2 1];

you are NOT supposed to use MATLABs default command conv (*,*). Q2. Calculate circular convolution of the above sequences. Q3 Compute the cross and auto correlation of two sequences. Sequences are to be provided by the user using input () command of MATLAB.

EXPERIMENT 3 Project 1 Frequency Domain Calculations Q1 Write a program to calculate DTFT of a signal. Use cheat sheet to find the supporting command for the calculations. Q2. Write a program to calculate DFT of a signal. Q3 Write a program to compute DFT in C to be run on the DSP. Project 2 DFT Q1 Calculate 8 point DFT of x= [1 2 3 1 2 1]. Q2 Calculate 8 point DFT of x= [1 2j 3+15j 1+9j 2 -j].

EXPERIMENT 4 Project 1: Window Functions Plot the window function and normalized frequency response in dB of the following functions Q1 Rectangular window. Q2 Barlett window Q3 Blackman window Q4 Hamming window Q5 Hanning window

EXPERIMENT 5 Project 1 FIR Filter design Q1 Write a program to generate the filter shown below

Q2 Write a program to realize the following

Q3 Write a program to realize

EXPERIMENT 6 Project 1 IIR filter design Q1 Write a program to realize the following

Q2 Write a program to realize the following

Q3 Write a program to realize

EXPERIMENT 7 Project 1 : FIR filter design Q1 Write a program to realize

Q2 Write a program to realize

Q3 Write a program to realize a low pass FIR filter with cut off frequency 1.2 rad, Side levels 30 dB down. Q4 Use fda tool of MATLAB to design 5 different type of FIR filters. Show the zeropole plot, frequency response, etc.

EXPERIMENT 8 Project: IIR filter design Q1 Write a program to realize

Q2 Write a program to realize

Q3 Write a program to realize following all pass transfer function

Q4 Use fda tool of MATLAB to design 5 different type of FIR filters. Show the zeropole plot, frequency response, etc.

EXPERIMENT 9 Project Digital filter design Q1 Write a program to realize a filter with frequency response

Calculate its impulse response. Q2 Write a program to calculate Hilbert transform of a function. Q3 Write a program to generate a Kaiser window. Use different values of M and and generate at least three different windows. Explain the effect of these various values of M and on the windows.

EXPERIMENT 10 Record a speech signal. Generate a high frequency noise in MATLAB. Design a low pass filter and pass the speech signal through it. Find whether the filter is able to reject the high frequency noise from the signal. Use cheat sheet for any help.

Vous aimerez peut-être aussi