Matlab Assignment1 2024
Matlab Assignment1 2024
Matlab Assignment1 2024
MATLAB Assignment 1
2. While plotting figures label the xy-axis properly and caption it.
2. x2 (t) = u(t)
b) Now, plot for time t = −2 ∶ 0.01 ∶ 2 (∆t = 0.01) and observe the difference.
1. x(2t + 1)
2. x(−t + 1)
3. x(2t + 1) + x(−t + 1)
1. Compute using sum command i.e. E = sum(x(t). ∗ x(t) ∗ ∆t). (C = A ⋅ ∗B multiplies arrays A and B
by multiplying corresponding elements. See times,⋅∗)
2. Compute E using MATLAB function quad which implements a better integration technique called
recursive adaptive Simpson quadrature.
Question 4
Repeat Question 3 for x(t) = e−t cos(2πt)u(t).
Question 5
Sketch the following discrete-time signals:
1 P.T.O
1. xa [n] = (−0.5)n
2. xb [n] = (2)−n
3. xc [n] = (−2)n
Question 6
Sketch the discrete-time signals in two figures using subplot
π
1. x[n] = cos ( 12 n + π4 )
3. x2 [n] = x1 [−2n]
4. x3 [n] = x1 [−2n − 1]