0% found this document useful (0 votes)
65 views

Assignment 1

The document outlines assignments for a signals and systems course. It includes tasks like plotting various continuous and discrete time signals in MATLAB, analyzing sums of sinusoids with the same and different frequencies, using MATLAB commands to determine system responses through convolution and filtering, and plotting step and impulse responses. The assignments cover fundamental concepts in signals and systems including basic signals, linearity properties, convolution, and difference equations.

Uploaded by

Harry Willsmith
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Assignment 1

The document outlines assignments for a signals and systems course. It includes tasks like plotting various continuous and discrete time signals in MATLAB, analyzing sums of sinusoids with the same and different frequencies, using MATLAB commands to determine system responses through convolution and filtering, and plotting step and impulse responses. The assignments cover fundamental concepts in signals and systems including basic signals, linearity properties, convolution, and difference equations.

Uploaded by

Harry Willsmith
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Signals and Systems: Assignment 1 (Due Date: 18th October 2018)

1) Plot the following continuous time signals using ‘plot’ command in MATLAB.
a) x(t) = 2 sin(2πt + π/6)
b) x(t) = 2 cos(2πt + π/6)
c) x(t) = eat for a = 0.5 and a = −0.5 separately
d) x(t) = e−t sin(2πt)
e) x(t) = et sin(2πt)

2) Plot the following discrete time signals using ‘stem’ command in MATLAB.
a) x[n] = u[n] (Hint: Try to use boolean operation in MATLAB)
b) x[n] = δ[n] ((Hint: Try to use boolean operation in MATLAB))
c) x[n] = 2n u[n]
d) x[n] = 2−n u[n]
e) x[n] = cos(2n)

3) Plot the following signals


a) Square wave using the command ‘square’ in MATLAB.
b) Sawtooth wave using the command ‘sawtooth’ in MATLAB.
sinx
c) sinc(x) = x
and sinc(0) = 1 for −10 ≤ x ≤ 10.
d) x(t) = sin(1/t) for 0 < t ≤ 1.
e) x(t) = cos(2πfm t)cos(2πfc t) where fm = 100Hz and fc = 1KHz.
f) x(t) = 1.5cos(2πfc t + 0.5sin(2πfm t)), where fc = 1KHz and fm = 100Hz

4) (Sum of sinusoid of same frequency) One of the useful results about sinusoids and co-
sinusoids is that sums of sinusoids and cosinusoids of the same frequency but with arbitrary
amplitude and phase result in another sinusoid or co-sinusoid of the same frequency. In this
exercise you will observe this using MATLAB. Let define the following signals

x1 (t) = A1 sin(wt + θ1 ),

x2 (t) = A2 sin(wt + θ2 ),

where A1 = 1, A2 = 3, w = 4π, θ1 = 0, θ2 = π/4. Plot x1 (t) and x2 (t) as a function of t for
−10 ≤ t ≤ 10. Then plot x3 (t) = x1 (t) + x2 (t). Comment regarding its frequency. Analytically
find an expression for x3 (t) in terms of Bsin(wt + φ). Plot this signal and compare with
x(t) = x1 (t) + x2 (t).

1 of 2
5) (Sum of sinusoids of different frequencies) Let us now consider the same example as above,
except that we consider the case when the frequencies of sinusoids are different. Let define
the following signals:

x1 (t) = A1 sin(w1 t + θ1 ),

x2 (t) = A2 sin(w2 t + θ2 ),

x3 (t) = A3 sin(w3 t + θ3 ),
√ √
where A1 = A2 = A3 = 1, w1 = 4π, w2 = 2 5π, w3 = 2 3π, θ1 = 0, θ2 = π/4 and
θ3 = π/6. Plot x1 (t), x2 (t) and x3 (t) as a function of t for −10 ≤ t ≤ 10. Also plot
x(t) = x1 (t) + x2 (t) + x3 (t) as a function of t for −10 ≤ t ≤ 10. Is x(t) is periodic? Give
appropriate reasons.

6) Use conv command in MATLAB to determine the output when h[n] = 0.25(u[n] − u[n − 4])
and x[n] = u[n] − u[n − 10]. Plot the response along with the input and impulse response. Also
obtain the result numerically and compare your result with the MATLAB.

7) Plot the first 50 values of the step response of the system with impulse response h[n] = ρn u[n],
where ρ = −0.9.

8) Use the MATLAB commands filter and filtic to determine the first 50 output values of the
system described by the following difference equations with input and initial conditions as
specified
a) y[n] − 12 y[n − 1] = 2x[n] , y[−1] = 3 and x[n] = ( −1
2
)n u[n]
b) y[n] − 19 y[n − 2] = x[n − 1], y[−1] = 1, y[−2] = 0, x[n] = u[n]

2 of 2

You might also like