Lecture 3
Lecture 3
Specific objectives:
• Introduction to systems
• Continuous and discrete time systems
• Properties of a system
• Linear (time invariant) LTI systems
• System implementation in Matlab and Simulink
discrete
x[n] y[n]
time (DT)
EE-2027 SaS, L3: 3/20
Examples of Simple Systems
To get some idea of typical systems (and their properties), conside
r the electrical circuit example:
dvc (t ) 1 1
vc (t ) vs (t )
dt RC RC
which is a first order, CT differential equation.
Examples of first order, DT difference equations:
y[n] x[n] 1.01 y[n 1]
where y is the monthly bank balance, and x is monthly net deposit
RC k
v[n] v[n 1] f [ n]
RC k RC k
which represents a discretised version of the electrical circuit
Example of second order system includes:
d 2 y (t ) dy (t )
a 2
b cy (t ) x(t )
dt dt
System described by order and parameters (a, b, c)
EE-2027 SaS, L3: 4/20
First Order Step Responses
People tend to visualise systems in terms of their responses t
o simple input signals (see Lecture 4…)
The dynamics of the output signal are determined by the dyn
amics of the system, if the input signal has no dynamics
Consider when the input signal is a step at t, n = 1, y(0) = 0
u(t)
y(t)
t
EE-2027 SaS, L3: 5/20
System Linearity
The most important property that a system po
ssesses is linearity
It means allows any system response to be an y
alysed as the sum of simpler responses (conv
olution)
x
Simplistically, it can be imagined as a line
y (t ) sin( xto(t ))
because it is invariant a time shift, i.e. x2(t) = x1(t-t0)
y2 (t ) sin( x2 (t )) sin( x1 (t t0 )) y1 ( x1 (t t0 ))
E.g. The following DT system is time-varying
y[n] nx[n]
Because the system parameter that multiplies the input signal is ti
me varying, this can be verified by substitution
and a delay
y[n] x[n 1]
Roughly speaking, a memory corresponds to a mechanism in the
system that retains information about input values other than t
he current time. n 1
y[n] k x[k ] x[n]
y[n 1] x[n]
EE-2027 SaS, L3: 10/20
System Causality
A system is causal if the output at any time depends on values of
the output at only the present and past times. Referred to as
non-anticipative, as the system output does not anticipate futu
re values of the input
If two input signals are the same up to some point t0/n0, then the
outputs from a causal system must be the same up to then.
E.g. The accumulator system is causal:
y[n] k x[k ]
n
System 1
x y
Parallel +
System 2
Feedback x y
+ System 1
System 2
EE-2027 SaS, L3: 14/20
Systems In Matlab
A system transforms a signal into another signal.
In Matlab a discrete signal is represented as an indexed
vector.
Therefore, a matrix or a for loop can be used to transfor
m one vector into another
Example (DT first order system)
>> n = 0:10;
>> x = ones(size(n));
>> x(1) = 0;
>> y(1) = 0;
>> for i=2:11
y(i) = (y(i-1) + x(i))/2;
end
>> plot(n, x, ‘x’, n, y, ‘.’)