Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

LAB # 04

IMPULSE RESPONSE AND CORRELATION


4.1 Objectives

 To study impulse and step response of a system using MATLAB.


 To find correlation of two discrete time sequences.
 To find autocorrelation of a discrete time noise corrupted sequence.
4.2 Equipment

 Computer / laptop
 MATLAB software

4.3 Useful Matlab functions

 ifft, fftshift, filter, conv, disp , fliplr, xcorr


 subplot, input,stem

4.4 Tasks
𝟏+𝐞−𝐣𝐰
1. Find Impulse response of a system H(ejw) = using MATLAB.
𝟏−𝐞−𝐣𝐰+𝟎.𝟗𝐞−𝐣𝟐𝐰
2. Plot Frequency transform (i.e magnitude and phase response) of following function
20
1
ℎ [𝑛 ] = ∑ 𝛿[𝑛 − 𝑘]
20
𝑘=0
using
I. fft() command
II. freqz() command
and then recover h[n] from these frequency responses using ifft() and plot the signal h[n].

3. Find cross-correlation of two discrete time sequences x(n) = 𝟎. 𝟗𝒏 𝒖[𝒏] and


y(n) = 𝒖[𝒏] − 𝒖[𝒏 − 𝟓] using conv() command.

4. Generate a discrete sequence x(n) and discrete random noise d(n) and then added noise to s(n)
i.e. y(n) = s(n) +d(n). Plot the x(n), d(n), y(n) and autocorrelation of y(n).

4.5 Lab Report

A typeset report including title page is required and is due before 12am the same day after the
lab.
4.6 Results
Show the simulation results to the instructor.

4.7 Assessment

CLO CLO Attributes Bloom Performance Indicators


Teamwork: Work effectively with
CLO1 A1, A2 Nil
team members
Skills: Use logical skills in  Proper understanding of experiment tasks
troubleshooting the problems  Explore the environment for code writing
GRS CLO2 C3, P3 
encountered while performing the Proper documentation of simulation / hardware result
laboratory procedure  Simple and understandable code writing
Ethics and Safety: demonstrate
CLO3 P2 As per rubric
positive attitude towards the group
Written: Discuss effectively the  Report is according to the specimen given
 Results are properly discussed
CLO4 results and conclude the main points C1  Code is understandable
in the report.  Syntax of the code is clear
Formulate to solve the engineering
problems: formulate and analyses to
Report CLO5 C2 Nil
solve the electrical engineering
problems.
Design and evaluate operational
performance: Use the fundamental
CLO6 C4 Nil
principles to design the system or
task based on the given specifications

You might also like