You are on page 1of 2

LAB 5: OPERATIONS AND SYSTEM PROPERTIES

CLO1: USE MODERN TOOL (E.G. MATLAB) FOR SIGNAL REPRESENTATION ,


VISUALIZATION AND PROCESSING IN BOTH TIME AND FREQUENCY DOMAIN .

Visualizing operations on the independent variable of signals:

Task 1:
Two operations on a signal’s independent variables are commonly encountered i.e., shifting and
scaling. We have already talked about both operations in lecture # 5. Inline objects can be one easy
way to investigate both operations. In this exercise you have flexibility of using any method to define
your function.

Hint:
The unit step function u(t) arises naturally in many practical situations. With the help of relational
operators, inline objects can represent the unit step function. The unit step function is readily defined
using the >= relational operators, like

Task 2:

Let x(n) = {1,2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1}. Determine and plot the following sequences.
a. x1(n) = 2x(n - 5) - 3x(n + 4)
b. x2(n) = x(3 - n) + x(n)x(n - 2)

Hint:

The sequence x(n) is nonzero over -2 ≤ n ≤ 10. Hence


>> n = -2:10; x = [1:7,6:-1:1];
will generate x(n).

Task 3: Generate the complex-valued signal


x(n) = e(-0.1+j0.3)n, -10 ≤ n ≤ 10

Page 1 of 2
Verifying System Properties:

Task 4:
Consider the discrete-time system y[n] = n x[n]. Use MATLAB to verify whether the system is Time
Invariant or not. Take n from -10 to 20.

a. Assume that the input to this system is x[n] = u[n]-u[n-4].


b. Sketch the input x[n].
c. Sketch the output y[n] for input x[n].
d. Let x1[n] = x[n-2]. Sketch the input x1[n].
e. Sketch the output y1[n] for input x1[n].
f. Sketch the output y[n-2].
g. Is the output y1[n] equal to y[n-2]? Is system TI?

Task 5:

Repeat Task4 for the system y[n] = (x[n+1] + x[n] + x[n-1])/3 (It is moving average filter with M=1)

%% The moving average filter is a simple Low Pass FIR (Finite Impulse Response) filter commonly
used for smoothing an array of sampled data/signal. It takes LL samples of input at a time and takes
the average of those LL-samples and produces a single output point.

Page 2 of 2

You might also like