Signals and Systems Assignment 1: Analysis, Solutions and MATLAB Plots

Verified

Added on  2022/10/19

|20
|2643
|13
Homework Assignment
AI Summary
This document presents a comprehensive solution to a Signals and Systems assignment. It begins by analyzing a system's characteristic equation, roots, and modes, and then proceeds to determine the transfer function. The solution includes calculations for the zero-input response, impulse response, and zero-state output using convolution and MATLAB. The document further explores the total system response, natural and forced responses, and provides MATLAB code for plotting impulse, step, and frequency responses. Finally, it examines the step response of an LTI system, the frequency response, and the output for a given input signal. It also includes the analysis of a signal in both the time and frequency domains, alongside the effects of a low-pass filter.
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
a. Find the characteristic equation, characteristic roots and characteristic modes of
this system:
Characteristic equation:
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = dx(t)/dt + 0.5 x(t)
Taking Laplace transfome:
L{d2y(t)/dt2} + 4L {dy(t)/d(t)} + 4L {y(t)} = L{dx(t)/dt} + 0.5L {x(t)}
Transfer Function = Laplace transform of output / Laplace Transform of input
Initial conditions sets to be zero:
y(0) = 0
x(0) = 0
H(s) = Y(s)/X(s) = (s+0.5)/ (s2 + 4s + 4)
Characteristics Roots:
(s +0.5) = 0
S= -0.5
Poles:
s+0.5 = 0,
s= -0.5,
Zeroes:
(s2 + 4s + 4) = 0
Taking the partial fraction:
s2 + (2 +2) s+ 4=0
s2 + 2s+2s+ 4=0
(s+2) (s+2) = 0
s = -2,-2.
Characteristic modes:
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
If the number of poles are less than the number of zeros i.e. Z > P then the value of transfer
function becomes infinity. Hence it shows that there are poles at infinity and the number of such
poles is (Z-P)
Poles < Zeroes
b. Comment on the stability of the system.
H(s) = Y(s)/X(s) = (s+0.5)/ (s2 + 4s + 4)
Poles:
s+0.5 = 0,
s= -0.5
Zeroes:
(s+2) (s+2) = 0
s = -2,-2.
When the poles of the system are located in the left-half plane (LHP) and the system is not
improper, the system is shown to be stable.
Document Page
c. Find y0(t), the zero-input component of the response For t ≥ 0, if the initial
conditions are y(0) = 3 and y (0) = −4.
Characteristic equation:
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = dx(t)/dt + 0.5 x(t)
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = 0
λ2 + 4 λ + 4 = 0
(λ +2) (λ +2) = 0
λ = -2,-2
yh (t) = C1 e-2t + C2 e-2t
Document Page
y0(t) = 3, 3 = C1 +C2
y’0(t) = dy0(t)/dt
y’0(t) = -2 e-2t - 2 e-2t
y’0(t) = -4, -4= -2C1 - 2C2
4 = 2 C1 + 2C2
C1 = 1
C2 = 4
Y0 (t) = e-2t + 4 e-2t
d. Mathematically derive an expression for (t) , the impulse response of the system.
H(s) = (s+0.5)/ (s2 + 4s + 4)
h(t) = L-1H(s)
h(t) = L-1 {(s+0.5)/ (s2 + 4s + 4)}
h(t) = L-1 {(s+0.5)/ (s+2)2}
(s+0.5)/ (s+2)2 = a 0
( s+2) + a 1
( s+2)2
For the denominator root:
a0 = 1
a1 = -1.5
h(t) = L-1{ 1
(s+2) - 1.5
( s+2) 2}
Use the linearity property of inverse Laplace transform:
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
L-1{ 1
( s+2 ) } = e-2t
L-1{ 1.5
(s+2) 2} = 1.5 e-2t.t
h(t) = e-2t - 1.5 e-2t.t
(e) Using the convolution tables and the result of part (d), find the zero-state output for the
system given the input
x(t) = e-3t . u(t)
MATLAB coding for zero input:
>> t=linspace(0,30);
>> xzi=1*exp(-3*t)
plot(t,xzi,'m')
title('x_{zi}(t) vs. t'); xlabel('t, (s)'); ylabel('x_{zi}(t), (m)'); axis([0 30 -5 10]);
Document Page
h(t) = e-2t - 1.5 e-2t.t
MATLAB coding for zero state:
>> t=linspace(0,30);
xzi=1*exp(-2*t)-1.5*exp(-2*t)
plot(t,xzi,'m')
title('x_{zi}(t) vs. t'); xlabel('t, (s)'); ylabel('x_{zi}(t), (m)'); axis([0 30 -5 10]);
Y(t) = x(t) * h(t)
Y(t) = e-3t . u(t). e-2t - 1.5 e-2t.t
.
:
Document Page
f. What is the total system response based on the conditions and input specified above?
Total system response:
Y(t) = Yn (t) + Yf(t)
Y(t) = e-2t + 4 e-2t +0.833 e-2t + 1.25 e-2t - 2.5 e-3t
Y(t) = 7.083 e-2t - 2.5 e-3t
g. What is the natural response and what is the forced response of this system?
Natural Response:
Characteristic equation:
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = dx(t)/dt + 0.5 x(t)
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = 0
λ2 + 4 λ + 4 = 0
(λ +2) (λ +2) = 0
λ = -2,-2
yh (t) = C1 e-2t + C2 e-2t
y0(t) = 3, 3 = C1 +C2
y’0(t) = dy0(t)/dt
y’0(t) = -2 e-2t - 2 e-2t
y’0(t) = -4, -4= -2C1 - 2C2
4 = 2 C1 + 2C2
C1 = 1
C2 = 4
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Natural Response:
Yn (t) = e-2t + 4 e-2t
Forced response:
Given Input is x(t) = e-3t
Yp(t) = k. e-3t
d Yp(t) / dt = k.(-3.e-3t)
d2 Yp(t) / dt2 = k.(9.e-3t)
k(9.e-3t) – 12.k.e-3t + 4k.e-3t = 3.e-3t +0.5e-3t
k=-2.5
Forced response:
Yp (t) = -2.5 e-3t
Yf(t) = yh(t) + yp(t)
Yf(t) = C1 e-2t + C2 e-2t - 2.5 e-3t
Y(0) = C1 + C2 -2.5
dY(0) / dt = -2 C1 - 2 C2 +7.5
C1=0.833, C2 = 1.25
Yf(t) = 0.833 e-2t + 1.25 e-2t - 2.5 e-3t
Document Page
(h) Using Matlab, plot the impulse and step responses and frequency response (magnitude
and phase) of this system directly from the differential equation.
d2y(t)/dt2 + 4.dy(t)/d(t) +4y(t) = dx(t)/dt + 0.5 x(t)
L{d2y(t)/dt2} + 4L {dy(t)/d(t)} + 4L {y(t)} = L{dx(t)/dt} + 0.5L {x(t)}
Initial conditions to be zero:
y(0) = 0
x(0) = 0
H(s) = (s+0.5)/ (s2 + 4s + 4)
MATLAB CODING:
Frequency response (magnitude and phase)
>> bode(sys)
bode(sys1,sys2,...,sysN)
bode(sys1,LineSpec1,...,sysN,LineSpecN)
bode(___,w)
[mag,phase,wout] = bode(sys)
[mag,phase,wout] = bode(sys,w)
[mag,phase,wout,sdmag,sdphase] = bode(sys,w)
Undefined function or variable 'sys'.
>> H = tf([1 0.5],[1 4 4]);
>> bode(H)
Document Page
Step Response MATLAB Coding:
>> num1=[1 0.5]
num1 =
1.0000 0.5000
>> den1= [1 4 4]
den1 =
1 4 4
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
>> sys1 = tf(num1, den1)
sys1 =
s + 0.5
-------------
s^2 + 4 s + 4
Continuous-time transfer function.
>> step(sys1)
Document Page
Impulse Response MATLAB Coding:
>> h=impz([1 0.5],[1 4 4])
h =
1.0e+06 *
0.0000
-0.0000
0.0000
-0.0000
0.0001
-0.0002
0.0004
-0.0008
0.0018
-0.0040
0.0087
-0.0189
0.0410
-0.0881
0.1884
-0.4014
0.8520
Document Page
-1.8022
3.8011
>> sys = rss(3);
h = impulseplot(sys);
% Normalize responses
setoptions(h,'Normalize','on');
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
i. Compare the impulse response plot from part (h) to the expression from part (d).
Comment on the overall shape and specific points on the plot that confirm that they
are equivalent
h(t) = e-2t - 1.5 e-2t.t
The response of the system for an impulse is called as impulse function.
According to the figure it shows the transfer function of the system as h(t) or h(w)’.
(j) Using the frequency response plots from part (h), determine the output of the system
If x(t)= 8+10 cos (t-200) +6 cos(30t+ 300)
H(s) = Y(s)/X(s) = (s+0.5)/ (s2 + 4s + 4)
Put s=jw
In frequency domain:
| H(jw)| = [w2 +2.5] /[w2 + 4]. [w2 + 4]
Document Page
By putting the value as w=1;
| H(jw)| = 1.87/5
| H(jw)| =0.374
| H(jw)| = tan1 0.374 = 0.357
y(t)= 0.374( 8+10 cos (t-200-0.357) +6 cos(30t+ 300- 0.357)
2. The step response of an LTI system is given by g(t) = 1/3.(1- e-3t).u(t)
(a) Determine the impulse response, (t) , of the system.
g(t) = 1/3.(1- e-3t).u(t)]
h(t) = d/dt{ 1/3.(1- e-3t).u(t)}
h(t) = e-3tu(t) + 1/3. (1- e-3t)δ(t)
By neglecting this term 1/3. (1- e-3t)δ(t):
h(t) = e-3tu(t)
(b) Use the linearity and time invariance properties to determine the response of the system
to the input.
For impulse response:
X(t) = 3 δt
H(t) = u(t)
0
t
e-(t-τ ). δ(τ ¿ dτ
t- τ = s,
τ =0, s=t;
Document Page
τ =t, s=0;
dτ = -ds
H(t) = u(t)
0
t
e-s. δ(ts ¿ ds
H(t) = 3e-t. u(t)
For Step Response:
X(t) =2u(t-2)
δt = (1-e-2t) u(t)
(c) Determine the frequency response of the system h(jw)
h(t) = e-3tu(t)
By Laplace transform:
H(s) = 1/s(s+3)
By putting s=jw
H(jw) = 1 / jw (jw +3)
(d) Determine the output y(t) for the input signal x(t) = 3 +10 cos(4t).
H(jw) = 1 / jw (jw +3)
| H(jw)| = 1/ [w2 (w2 +3)
W = 1
| H(jw)| = 1 / 2
| H(jw)| = tan1 w/1 = tan1 1 = -x/4
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
y(t) = 1 / 2 (3 + 10 cos (4t –x/4))
3. A signal is defined by the equation:
X(t) = 5[u(t+1) – u(t-1)]
a) Sketch the form of the signal in the time domain.
>> clear all
>> close all
>> %f(x)=5 for x<-1 and f(x)=5 for x>1
>> %define limit upto which u want to plot
>> t= -20:0.001:20;
>> y=heaviside(t);
>> plot(t,y,'linewidth',3);
>> axis([-20 20 -2 2]); %first 2 are x limit and last 2 are y limit
Document Page
(b) Write an expression for the frequency domain representation of this signal and sketch
the corresponding frequency magnitude plot, clearly marking values at important points
such as intercepts.
X(t) = 5[u(t+1) – u(t-1)]
Taking fourier transform:
X(w) = 5 F[ u(1 - |t|)]
X(t) = u(1-t) for t >0
X(t) = u(1+ t) for t < 0
X(w) = 5 {


x ( t )e-jwt}
X(w) = 5 {

0
x ( t )e-jwt +
0

x ( t )e-jwt}
Document Page
X(w) = 5 {

0
u(1t )e-jwt +
0

u (1+t)e-jwt}
X(w) = 5 {1/jw (ejw - e-jw)}
X(w) = 5 {(2/w). sinw}
MATLAB code:
>> sys_dc = idtf([1 4],[1 20 5]);
step(sys_dc)
(c) Describe what would happen to this signal if it was passed through a physically
realizable (non-ideal) low-pass filter with a cut-off frequency of 0.5Hz and sketch the
what the output signal might look like.
For unit step signal,
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
The Sampling period:
TS = 1/ fS
TS = 1/ 0.5
TS = 2 sec.
chevron_up_icon
1 out of 20
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]