SlideShare a Scribd company logo
1 of 56
Download to read offline
Introduction to Digital Signal Processing (DSP)
Course Notes
By
Ahmed Fawzy Gad
Faculty of Computers and Information (FCI)
Menoufia University
Egypt
ahmed.fawzy@ci.menofia.edu.eg
β€«Ψ§Ω„Ω…Ω†ΩˆΩΩŠΨ©β€¬ ‫جامعة‬
β€«ΩˆΨ§Ω„Ω…ΨΉΩ„ΩˆΩ…Ψ§Ψͺ‬ ‫الحاسباΨͺ‬ β€«ΩƒΩ„ΩŠΨ©β€¬
β€«Ω‚Ψ³Ω…β€¬β€«Ψ§Ω„Ω…ΨΉΩ„ΩˆΩ…Ψ§Ψͺ‬ ‫ΨͺΩƒΩ†ΩˆΩ„ΩˆΨ¬ΩŠΨ§β€¬
β€«Ω…ΨΉΨ§Ω„Ψ¬Ψ©β€¬β€«Ψ§Ω„Ψ±Ω‚Ω…ΩŠΨ©β€¬ ‫اΨ₯Ω„Ψ΄Ψ§Ψ±Ψ§Ψͺ‬
MENOUFIA UNIVERSITY
FACULTY OF COMPUTERS AND
INFORMATION
INFORMATION TECHNOLOGY
DEPARTMENT
DIGITAL SIGNAL PROCESSING
β€«Ψ§Ω„Ω…Ω†ΩˆΩΩŠΨ©β€¬ ‫جامعة‬
Course Syllabus
Section 1, 2
ο‚· MATLAB
Section 3, 4
ο‚· Revision
Section 5
ο‚· Introduction to DSP
ο‚· What is signal?
ο‚· What is system?
ο‚· Signal Classification
o Continuous & Discrete
o Even & Odd
 Using graph
 Using algebra
 Even and Odd Signals Characteristics
 Finding even and odd components
o Periodic & Non-periodic
 Continuous only
 Using graph
 Using algebra
o Deterministic & Random
Section 6
ο‚· Difference between notation of discrete and continuous signals
ο‚· Basic Operations on Signals
o Operations on dependent variables
 Amplitude scaling
 Addition
 Multiplication
 Differentiation
 Integration
o Operations on independent variables
 Time scaling
 Reflection
 Time shifting
Section 7
ο‚· Elementary signals in digital signal processing
o Exponential
o Sinusoidal
 Discrete-time signal periodicity
o Exponentially damped sinusoidal
o Unit-step
o Unit-impulse
o Ramp
ο‚· Basic Operations on the elementary signals
ο‚· System
o System Definition
o Grouping operations to create a system
o Interconnection of operations
ο‚· MATLAB Graphical User Interface (GUI)
o Signal Basic Operations Program
Section 8
ο‚· System Cont.
o System Properties
 Linear
ο‚· Homogenous
o Algebraic
o Graph
ο‚· Additive
o Algebraic
o Graph
 Time invariant
 Memoryless
 Causal
 Stable
ο‚· Stable systems
ο‚· Why stable system is important?
Section 9
Midterm Exam
Section 10
ο‚· Summation Rules
ο‚· Convolution
o Discrete
 Convolution Sum
o Continuous
 Convolution Integral
Section 11
ο‚· Unit Impulse as System Impulse Response
ο‚· System Properties (Discrete & Continuous)
o Distributive
o Associative
o Commutative
ο‚· Linear Time Invariant (LTI) Systems Properties (Discrete & Continuous)
o Memory
o Causality
o Stability
ο‚· System Block Diagram
Section 12
ο‚· Introduction to Fourier Transform
o What is Fourier?
o Why Using Frequency Domain?
o Example to show importance of the frequency domain.
o Fourier Representations.
ο‚· Fourier Transform
o Moving between Time-Domain and Frequency-Domain
o Useful Rules
o Some uses of the Fourier transform in signal processing
ο‚· Exercises
o FT
o IFT
Section 13
ο‚· Steps to find Z-transform of a signal
1. Find 𝑋(𝑧)
2. Determine Region Of Convergence (ROC)
3. Calculate Poles and Zeros
ο‚· Z-transform examples
***Section 5***
Introduction to DSP
Some students asked why using MATLAB and what is the relation between MATLAB & the
course of digital signal processing.
Just we will make a hint that to process a signal a signal processing tool is used. MATLAB is one
of these tools and there are other tools like Python.
This diagram helps students to understand the journey of a signal from being an input
continuous signal to being an output continuous signal.
Digital signal processing is responsible for the operations to convert the signal from continuous
to discrete, processing it and converting it back to continuous.
Even and Odd Signals Characteristics
ο‚· General Characteristics
o π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑)
o π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑)
o π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑)
ο‚· Addition Characteristics
o π‘₯ 𝑒 + 𝑦𝑒 = 𝑧 𝑒
o π‘₯ π‘œ + π‘¦π‘œ = 𝑧 π‘œ
o π‘₯ 𝑒 + π‘¦π‘œ = 𝑧 𝑒 + 𝑧 π‘œ
ο‚· Multiplication Characteristics
o π‘₯ 𝑒 * 𝑦𝑒 = 𝑧 𝑒
o π‘₯ π‘œ * π‘¦π‘œ = 𝑧 𝑒
o π‘₯ 𝑒 * π‘¦π‘œ = 𝑧 π‘œ
Numbers Classification
Units of measurements
Signal Classification
Even and Odd
We can determine whether a function is even or odd using:
1. Graph
2. Algebra
Even and Odd using Graph
Some functions can be easily classified as either even or odd from its graph.
If the function can be folded into two parts around the vertical axis and be identical (symmetric
about vertical axis) then the function is even. If the graph is antisymmetric about the time origin
it is odd.
Examples:
**Notebook**
Even and Odd using Algebraic Operations
We should know these characteristics at first:
General Characteristics
π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑)
π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑)
π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑)
Examples:
Determine whether the following signals are even or odd
1. f(t) = sin(t)
2. f(t) = cos(t)
3. f(t) = t + 5
4. **Example 1.1** p18-35
Answers:
1. Odd
2. Even
3. Not even and not odd
4. Odd
Finding even and odd components
Revise the previous characteristics.
Find the equations to calculate 𝒙 𝒆(𝒕) and 𝒙 𝒐(𝒕).
The equation π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) has two unknowns π‘₯ 𝑒(𝑑) and π‘₯ π‘œ(𝑑) so we need
two equations.
One equation is as follows:
π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑)
The other one can be found by substituting for –t rather than t to get:
π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(βˆ’π‘‘) + π‘₯ π‘œ(βˆ’π‘‘)
Based on the following properties:
π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑)
π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑)
We can write:
π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) - π‘₯ π‘œ(𝑑)
So the two equations are:
1. π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑)
2. π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) - π‘₯ π‘œ(𝑑)
We can add both of these equations to get rid of π‘₯ π‘œ(𝑑):
π‘₯(𝑑) + π‘₯(βˆ’π‘‘) = 2π‘₯ 𝑒(𝑑)
So finally:
π‘₯ 𝑒(𝑑) =
π‘₯(𝑑) + π‘₯(βˆ’π‘‘)
2
Similarly we can find π‘₯ π‘œ(𝑑):
π‘₯ π‘œ(𝑑) =
π‘₯(𝑑) βˆ’ π‘₯(βˆ’π‘‘)
2
Examples:
Find the even and odd components of the following signals:
1. **Example 1.2** p19-36
Note that the first step to make when solving such problems is to prepare π‘₯(βˆ’π‘‘) because both
the even and odd components depend on it and also the given π‘₯(𝑑).
Periodic & Non-periodic
Using Graph
A signal is said to be periodic using just its graph if it consists of a single part that repeats itself.
Examples:
1. Sine wave
2. Square waves
3. Discrete wave
Examples of non-periodic waves:
Using Algebra
A signal is said to be periodic if it satisfies the following condition:
π‘₯(𝑑) = π‘₯(𝑑 + 𝑇)
Where T is the fundamental period of the signal π‘₯(𝑑).
Thus the fundamental period is required.
It is calculated by mapping the existing function to its standard form.
Examples:
𝑒 𝑖𝑑
=> 𝑒5π‘–πœ‹π‘‘
cos 𝑑 => cos(2πœ‹π‘‘)
Examples:
1. 𝑒 𝑖2πœ‹π‘‘/10
2. cos(𝑑 + πœ‹/2)
Solutions:
1)
For the signal π‘₯(𝑑) to be periodic it must satisfy the following condition:
π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) where T is the fundamental period
First step is to find the fundamental period of the signal.
The angular frequency Ο‰ =
2πœ‹
𝑇
The angular frequency Ο‰ is the part multiplied at the independent variable t.
In our case, π‘₯(𝑑) = 𝑒 𝑖2πœ‹π‘‘/10
, the angular frequency Ο‰ is the part multiplied by t which is
2πœ‹
10
.
So Ο‰ =
2πœ‹
10
Because Ο‰ = 2πœ‹
10
=
2πœ‹
𝑇
so ( 𝑇 =10).
As we calculated the fundamental period 𝑇 we can find π‘₯(𝑑 + 𝑇).
π‘₯(𝑑 + 𝑇)= π‘₯(𝑑 + 10) = 𝑒 𝑖2πœ‹(𝑑+10)/10
The equation can be simplified as follows:
𝑒 𝑖2πœ‹(𝑑+10)/10
= 𝑒 𝑖2πœ‹π‘‘/10+𝑖2πœ‹10/10
= 𝑒 𝑖2πœ‹π‘‘/10+𝑖2πœ‹
= 𝑒 𝑖2πœ‹π‘‘/10
. 𝑒 𝑖2πœ‹
Because 𝑒 𝑖2πœ‹
= cos(2πœ‹) + 𝑖sin(2πœ‹)
And because sin(2πœ‹) = 0 and π‘π‘œπ‘ (2πœ‹) = 1
So 𝑒 𝑖2πœ‹
= 1
So 𝑒 𝑖2πœ‹π‘‘/10
. 𝑒 𝑖2πœ‹
= 𝑒 𝑖2πœ‹π‘‘/10
As we reached that π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) we can conclude that the signal is periodic.
Why sin(-t) = sin(t) and cos(-t) = cos(t)?
A function has two types of variables:
1. Independent variables
2. Dependent variables
Independent variables are the inputs to the functions which not depend on any form of
variables to define their values.
Dependent variables are the outputs of the functions and they do depend on other variables to
determine their values. The variables that they depend on are the independent variables.
Suppose that there is a function y = f(x) = x + 5
The independent variable here in f(x) is just the variable x and the dependent variable is y. It is
dependent here because y values can only be determined when values of x are known.
So depending on x values y values can be determined.
When drawing such a function on the Euclidean space the independent variables are drawn on
the x-axis and the dependent variables are drawn on the y-axis.
The x-axis values change in sign when moving horizontal from right to left and vice versa.
The y-axis values change in sign when moving vertical from top to bottom and vice versa.
We can conclude that the independent variables change in sign when moving vertically and
dependent variables change in sign when moving vertically.
For the sine and cosine functions we know the following:
sin =
π‘‚π‘π‘π‘œπ‘ π‘–π‘‘π‘’
π»π‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’
cos =
π΄π‘‘π‘—π‘Žπ‘π‘’π‘›π‘‘
π»π‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’
.
For the left part of the next figure, the opposite of ΞΈ is the y-axis and the adjacent of ΞΈ is the x-
axis.
So sine depends on the opposite and the opposite in our case is the y-axis and the y-axis change
sign when moving vertically above and below the horizontal x-axis. Also cosine depends on the
adjacent and the adjacent in our case is the x-axis and the x-axis change sign when moving
horizontally about the vertical y-axis.
Summary:
sine -> opposite -> y-axis -> vertically
cosine -> adjacent -> x-axis -> horizontally
When selecting a positive angle like 60 it will be drawn counter-clockwise. To draw a negative
angle it will be drawn clockwise.
For a negative angle –θ as in our example it will be drawn counter-clockwise.
As it is apparent in the right part of the figure that drawing a negative angle will flip over the x-
axis.
In our example, flipping over the x-axis will make the x-axis values remain the same as if the
angle still positive but it changes the sign of the y-axis.
What depends on the y-axis? It is the sine. So the sine will change sign too.
But because the x-axis remains the same and the cosine depends on it so no changes will occur
to the cosine.
At this point we should have known whey sin(-t) = sin(t) and cos(-t) = cos(t).
MATLAB Task
Write a MATLAB function named check_periodicity that checks whether the following signal is
periodic or non-periodic.
π‘₯(𝑑) = 𝑒 π‘–π’‚πœ‹π‘‘/𝒃
The function will accept two positive integers as inputs from the user:
1. Coefficient in the enumerator (a in the equation)
2. Coefficient in the denominator (b in the equation)
After accepting these inputs the complete equation will be displayed on the screen.
Notes:
Clarify your code using comments.
Write your name and section commented immediately after the function header.
Grades will be based on these points:
ο‚· Creating a function
ο‚· Accepting the right inputs
ο‚· Displaying the equation correctly on the screen
ο‚· Correct algorithm that can successfully classify the signal
ο‚· Code clarification
Copy minus.
**Section 6**
Difference between notation of discrete and continuous signals
In signal processing systems, continuous-time signals usually use the symbol 𝑑 for their
independent variables and use parentheses but discrete-time signals use the symbol n for their
independent variables and use square brackets.
Examples of continuous-time signals: 𝑦(𝑑), π‘₯(𝑑)
Examples of discrete-time signals: f[n], x[n]
HINT
In the course reference, there are no problems for just the operations on dependent variables
but what is found is a combination of operations on both dependent and independent variables.
So we can put some examples for just operations on dependent variables on both continuous-
time and discrete-time signals.
There is also a hand-created problem for each of these operations. So there are a total of 3
problems for each operation.
ο‚· Amplitude scaling:
1. Fig. 1.52 – β„Ž1: 2π‘₯(𝑑)
2. Fig. 1.52 – β„Ž2: 3𝑦(𝑑)
3. Fig. 1.56 – 𝑙1: . 3π‘₯[𝑛]
4. Fig. 1.56 – 𝑙2: 1.5𝑦[𝑛]
ο‚· Addition:
1. Fig. 1.52 – β„Ž3: π‘₯(𝑑) + 𝑦(𝑑)
2. Fig. 1.56 – 𝑙3: π‘₯[𝑛] + 𝑦[𝑛]
ο‚· Multiplication:
1. Fig. 1.52 – β„Ž4: π‘₯(𝑑)𝑦(𝑑)
2. Fig. 1.56 – 𝑙4: π‘₯[𝑛]𝑦[𝑛]
Basic Operations on Signals
Before diving into the operations that can be performed over the signals it is good to know the
difference between independent and dependent variables.
For example, list the independent and dependent variables in the following signal:
z = f(x, y) = x + y + a
Here x and y are the independent variables because their values not depend on any factor but z
is the dependent variable because its value depends on both x and y.
Operations on dependent variables
Operations performed on dependent variables not affect just a single independent variable but
affects all independent variables.
So all of these operations just change the dependent variable so they don`t change the
dependent variables. The independent variable is graphed over the x-axis and the deponent
variable is graphed over the y-axis. So no change in the x-axis values before and after scaling but
the change will be in the y-axis values.
Amplitude scaling
Suppose there is a continuous-time signal π‘₯(𝑑) scaled by a scaling factor c, the resulting signal
𝑦(𝑑) is as follows:
𝑦(𝑑) = 𝑐π‘₯(𝑑)
π‘₯(𝑑) the original signal, c scaling factor, 𝑦(𝑑) the scaled signal
Scaling for discrete-time signals is performed in a similar manner to continuous-time signals:
y[n] = cx[n]
Example 6.1:
𝒙(𝒕) = 𝒕 + 2 for -3 ≀ 𝑑 ≀ 3
Perform amplitude scaling for x(t) to get y(t) by a scaling factor 2 and graph the two signals.
𝑦(𝑑) = 𝑐π‘₯(𝑑)
For c = 2
𝑦(𝑑) = 2π‘₯(𝑑)
𝑦(𝑑) = 2(𝑑 +2) = 2𝑑 +4
Amplitude scaling:
1. Fig. 1.52 – β„Ž1: 2π‘₯(𝑑)
2. Fig. 1.52 – β„Ž2: 3𝑦(𝑑)
3. Fig. 1.56 – 𝑙1: . 3π‘₯[𝑛]
4. Fig. 1.56 – 𝑙2: 1.5𝑦[𝑛]
Addition
For the continuous-time signals π‘₯1(𝑑) and π‘₯2(𝑑) the output signal 𝑦(𝑑) is obtained by adding
these two signals as follows:
𝑦(𝑑) = π‘₯1(𝑑) + π‘₯2(𝑑)
This is similar to adding discrete-time signals:
y[n] = x1[n] + x2[n]
Example 6.2:
π‘₯1(𝑑) = 𝑑
π‘₯2(𝑑) = 𝑑 + 2
Using graph find π’š(𝒕) = π‘₯1(𝑑) + π‘₯2(𝑑) and graph the result signal where -3 ≀ 𝑑 ≀ 3.
Addition:
1. Fig. 1.52 – β„Ž3: π‘₯(𝑑) + 𝑦(𝑑)
2. Fig. 1.56 – 𝑙3: π‘₯[𝑛] + 𝑦[𝑛]
Multiplication
For the continuous-time signals π‘₯1(𝑑) and π‘₯2(𝑑) the output signal 𝑦(𝑑)) is obtained by
multiplying these two signals as follows:
𝑦(𝑑) = π‘₯1(𝑑)π‘₯2(𝑑)
This is similar to multiplying discrete-time signals:
y[n] = x1[n]x2[n]
Example 6.3:
Multiply the previous two signals and graph the three signals (two inputs + one output).
π‘₯1(𝑑) = 𝑑
π‘₯2(𝑑) = 𝑑 + 2
Multiplication:
1. Fig. 1.52 – β„Ž4: π‘₯(𝑑)𝑦(𝑑)
2. Fig. 1.56 – 𝑙4: π‘₯[𝑛]𝑦[𝑛]
Question:
𝒙(𝒕) = 𝒕 +3 where -5 ≀ 𝑑 ≀ 5
From x(t) how to return a new signal of the form using the basic operations on signals. Explain.
𝑦(𝑑) = {
π‘₯(𝑑), βˆ’ 3 ≀ 𝑑 ≀ 3
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
How to return a new signal that is identical to π‘₯(𝑑) for -3 ≀ 𝑑 ≀ 3 and have zero otherwise.
Operations on independent variables
These operations will of course affect the independent variables and the independent variables
and graphed over the x-axis so they affect the x-axis.
Time Scaling
For the continuous-time signal π‘₯(𝑑), the output signal 𝑦(𝑑) is obtained by scaling the
independent variable t by a scaling factor c as follows:
𝑦(𝑑) = π‘₯(π‘Žπ‘‘)
If a > 1 then the signal get compressed and if 0 < a < 1 the signal get expanded (stretched).
This also holds for discrete-time signals:
𝑦[𝑛] = π‘₯[π‘˜π‘›]
Example 6.4:
Draw the following continuous-time signal 𝒙(𝒕) based on its inputs and outputs:
X -2 -1 0 1 2
Y 0 1 2 1 0
Find the time-scaled version of that signal π’š(𝒕) for the following values for the scaling factor:
ο‚· 3
ο‚· .6=3/5
Book Problems:
ο‚· 1.56 (a)
Question:
Why when multiplying by a value > 1 the signal gets compressed and when multiplying by a
value < 1 the signal gets expanded?
This can be explained using the unit function.
The following unit function is defined in the range -1 ≀ 𝑑 ≀ 1:
It can be rewritten in a more representative form as follows:
π‘₯(𝑑) = {
1, βˆ’ 1 ≀ 𝑑 ≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
When scaling that function by a scaling factor > 0 like 2 it will be as follows by just replacing each
𝑑 by 2𝑑:
π‘₯(2𝑑) = {
1, βˆ’ 1 ≀ 2𝑑 ≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
But it is more convenient to separate the independent variables in an equation from other
factors. Here 2 and the independent variable 𝑑 are in the same side.
Divide by 2 to make the equation has this form:
π‘₯(2𝑑) = { 1, βˆ’
1
2
≀ 𝑑 ≀
1
2
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
From this equation it is apparent that the range got compressed from -1:1 to -
1
2
:
1
2
.
From the last equation it is shown that when multiplying by a scaling factor greater than 1 like 2
the signal got compressed.
We can try multiplying by a factor less than 1 like
1
2
.
π‘₯(𝑑) = {
1, βˆ’ 1 ≀ 𝑑 ≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
π‘₯ (
𝑑
2
) = {
1, βˆ’ 1 ≀
𝑑
2
≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
π‘₯ (
𝑑
2
) = {
1, βˆ’ 2 ≀ 𝑑 ≀ 2
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
From the last equation it is shown that when multiplying by a scaling factor less than 1 like
1
2
the
signal gets expanded.
So we can have a rule that says if the scaling factor > 1 then the signal get compressed and if the
factor is < 1 the signal get expanded.
Reflection:
Reflection of a continuous-time signal π‘₯(𝑑) is obtained by replacing the time t by –t to generate
the reflected version of π‘₯(𝑑) which is 𝑦(𝑑).
𝑦(𝑑) = π‘₯(-t)
This is similar to discrete-time signals:
𝑦[𝑛] = π‘₯[-n]
Book Problems:
1. Fig. 1.56 – 𝑙5: π‘₯[βˆ’π‘›]
2. Fig. 1.56 – 𝑙6: 𝑦[βˆ’π‘›]
Time Shifting:
For the continuous-time signal π‘₯(𝑑) the time-shifted version 𝑦(𝑑) is defined as:
𝑦(𝑑) = π‘₯(𝑑 + 𝑑 π‘œ)
Where 𝑑 π‘œ is the time shift.
If 𝒕 𝒐> 0 then the signal goes to the right and if 𝒕 𝒐< 0 the signal goes to the left.
In case of a discrete-time signal π‘₯[𝑛], the time-shifted version is:
𝑦[𝑛] = π‘₯[𝑛 βˆ’ π‘š]
Where m is a positive or negative integer.
Book Problems:
1. Fig. 1.56 – 𝑙5: π‘₯[𝑛 + 2]
2. Fig. 1.56 – 𝑙6: 𝑦[𝑛 βˆ’ 3]
Question:
When subtracting a value from the independent variable 𝒕, how the signal go to the right not
the left?
Suppose that there are two devices (𝐷1 and 𝐷2) generating signals at the same time 𝑑 which is
for example 12PM. But we need 𝐷2 to generate its signal after 𝐷1 signal by a delay of 2 minutes.
𝐷1-> S1 -> t -> 12 PM
𝐷2-> S2 -> t -> DELAY -> 𝒕 𝒐 -> 2 min -> 12PM + 2 MIN
Finally we have:
𝑑 = 12𝑃𝑀
𝑑 βˆ’ 𝑑 π‘œ = 12𝑃𝑀
𝑑 βˆ’ 2𝑀𝐼𝑁 = 12𝑃𝑀
𝑑 = 12𝑃𝑀 + 2𝑀𝐼𝑁
Thus time for 𝐷2 signal got delayed by 2 minutes when subtracting 2 from the time variable 𝑑.
Another better explanation:
For the following unit step function:
It has the following equation:
π‘₯(𝑑) = {
1, βˆ’ 1 ≀ 𝑑 ≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
When the signal is to be shifted in time by value +2 the new equation will be as follows:
π‘₯(𝑑 βˆ’ 2) = {
1, βˆ’ 1 ≀ 𝑑 βˆ’ 2 ≀ 1
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
π‘₯(𝑑 βˆ’ 2) = {
1, βˆ’ 1 + 2 ≀ 𝑑 ≀ 1 + 2
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
π‘₯(𝑑 βˆ’ 2) = {
1, 1 ≀ 𝑑 ≀ 3
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Thus the signal is shifted to the right when it shifted by a positive value like +2.
The signal will also get shifted to the left when it shifted by a negative value like -2.
Sheet:
1. Problems solved in the section
2. Book Problems:
a. 1.50
b. 1.51
c. 1.52
d. 1.56
**Section 7**
Elementary Signals in Digital Signal Processing
There are some basic signals in the field of digital signal processing that has dominant features.
These signals are important by themselves because they reflect some already existing physical
signals but also they are useful to:
ο‚· Construct signals based on these basic signals
ο‚· Process and apply operations over signals based on such basic signals
Because signals can be either discrete or continuous we should know:
1. Algebraic equation of continuous and discrete forms of each basic signal
2. Graph of the continuous and discrete forms of the signals
Exponential Signal
One important factor about such exponential signal is whether it is increasing or decreasing
(growing or decaying).
Continuous
π‘₯(𝑑) = 𝐡𝑒 π‘Žπ‘‘
π‘Ž < 0 π·π‘’π‘π‘Žπ‘¦π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™
π‘Ž > 0 πΊπ‘Ÿπ‘œπ‘€π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™
a=-6, B=5 a=5, B=1
Note that e=2.7 is a number greater than 1.
When a number > 1 is raised to a power < 0 it will decrease its value by increasing the
magnitude of the power. When the power is > 0 it will increase the resultant value by increasing
the power magnitude.
In our example e is greater than 1 and when a > 0 the result will be an increasing signal and
when a < 0 result will have the form of a decreasing signal.
Discrete
π‘₯[𝑛] = 𝐡𝑒 π‘Žπ‘›
π‘Ž < 0 π·π‘’π‘π‘Žπ‘¦π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™
π‘Ž > 0 πΊπ‘Ÿπ‘œπ‘€π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™
a=-6, B=5 a=5, B=1
The same explanation why x[n] is sometimes increasing and others decreasing is the same as the
continuous form.
Sinusoidal Signal
Continuous
π‘₯(𝑑) = π΄π‘π‘œπ‘ (πœ”π‘‘ + 𝛷)
π‘₯(𝑑) = 𝐴𝑠𝑖𝑛(πœ”π‘‘ + 𝛷)
Where πœ” = 2πœ‹π‘“
Remember that for a signal to be periodic this condition must be valid:
π‘₯(𝑑) = π‘₯(𝑑 + 𝑇)
Discrete
π‘₯[𝑛] = π΄π‘π‘œπ‘ (𝛺𝑛 + 𝛷)
π‘₯[𝑛] = 𝐴𝑠𝑖𝑛(𝛺𝑛 + 𝛷)
Where 𝛺𝑁 = 2πœ‹π‘š
Discrete-Time Signal Periodicity
For a discrete-time signal like:
π‘₯[𝑛] = π΄π‘π‘œπ‘ (𝛺𝑛 + 𝛷)
π‘₯[𝑛] = 𝐴𝑠𝑖𝑛(𝛺𝑛 + 𝛷)
Where 𝛺𝑁 = 2πœ‹π‘š
It will be periodic only if both m and N are integers.
Examples:
o 1.16 – p56-39
o 1.17-a, c – p56-39
o 1.18-a, d – p56-39
Exponentially Damped Sinusoidal
Unit-Step Signal
Continuous
Discrete
Unit-Impulse Signal
Discrete
The unit-impulse signal is also called delta and Ξ΄ is called delta.
The unit-impulse signal can be calculated from the unit-step signal.
𝛅[ 𝑛] = 𝑒[ 𝑛] βˆ’ 𝑒[ 𝑛 βˆ’ 1]
Ramp Signal
Continuous
Discrete
Note:
The ramp signal can be calculated based on the unit-step signal.
The ramp signal output is always equal to its input. So we can represent the ramp signal with
this equation:
π‘Ÿ(𝑑) = 𝑑
It will have t this graph:
But it is just defined at 𝑑 β‰₯ 0.
So how to make the negative part of the ramp signal equal to zero?
We apply some of the basic operations to remove the negative part of that result.
The simplest is by using multiplication: because 𝑒(𝑑) signal is only defined at the positive part
and zero we can multiply it by the signal π‘Ÿ(𝑑) = 𝑑 to return the ramp signal.
So it will be as follows for continuous and discrete forms:
π‘Ÿ(𝑑) = 𝑑𝑒(𝑑)
π‘Ÿ[𝑛] = 𝑛𝑒[𝑛]
Basic Operations on the elementary signals
Examples:
o Show step by step how to create a unit-impulse signal using just unit-step signals.
o Show step by step how to create a ramp signal using unit-step signals.
o How to create the signal shown in the following graphs using just the elementary
signals:
A B
A B
Figure. P1
Solutions:
1. 𝑒(𝑑 + 2) βˆ’ 𝑒(𝑑 βˆ’ 2) + 𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1)
2. 2Ξ΄[ 𝑛] + 4Ξ΄[ 𝑛 + 1] βˆ’ Ξ΄[ 𝑛 + 2] βˆ’ 5Ξ΄[ 𝑛 βˆ’ 1] βˆ’ 2Ξ΄[ 𝑛 βˆ’ 2]
Advanced problems:
ο‚· How to represent the signal shown in P1-B using just unit-step signals.
At first the signal is directly represented using unit-impulse signals. Unit impulse signals can be
represented using just the unit-step signals.
So solution steps are:
1. Represent the signal using just unit-impulse signals.
2. Replace each unit-impulse signals by its equivalent unit-step signals.
Solution is:
Ξ΄[ 𝑛] = 𝑒[ 𝑛] βˆ’ 𝑒[𝑛 βˆ’ 1]
Ξ΄[ 𝑛 + 1] = 𝑒[ 𝑛 + 1] βˆ’ 𝑒[𝑛]
Ξ΄[ 𝑛 + 2] = 𝑒[ 𝑛 + 2] βˆ’ 𝑒[𝑛 + 1]
Ξ΄[ 𝑛 βˆ’ 1] = 𝑒[ 𝑛 βˆ’ 1] βˆ’ 𝑒[𝑛 βˆ’ 2]
Ξ΄[ 𝑛 βˆ’ 2] = 𝑒[ 𝑛 βˆ’ 2] βˆ’ 𝑒[𝑛 βˆ’ 3]
The final equation is:
2( 𝑒[ 𝑛] βˆ’ 𝑒[ 𝑛 βˆ’ 1]) + 4( 𝑒[ 𝑛 + 1] βˆ’ 𝑒[ 𝑛]) βˆ’ ( 𝑒[ 𝑛 + 2] βˆ’ 𝑒[ 𝑛 + 1])
βˆ’ 5( 𝑒[ 𝑛 βˆ’ 1] βˆ’ 𝑒[ 𝑛 βˆ’ 2]) βˆ’ 2( 𝑒[ 𝑛 βˆ’ 2] βˆ’ 𝑒[𝑛 βˆ’ 3])
Book Problems:
o 1.54-a, d – p106-89
Some operations will involve just a single type of the above basic signals and others may contain
more than one type.
Interconnection of operations
o Book examples
o 1.12 – p70-53
o Book problems
o 1.25-p71-54
It is simpler to represent the system as a graph rather than an equation.
System operations can be connected using two ways:
1. Parallel: Each operation takes a separate path and implemented by a separate circuit.
This is simple but adds more costs to create a separate circuit for each operation.
2. Cascade: The single operation is used multiple times. This saves costs but adds more
complexity to reuse the same circuit.
MATLAB GUI Task
Create a MATLAB GUI application to perform the basic operations on a sine wave as explained in
the following diagram.
Sheet 3:
ο‚· Problems solved in the section
ο‚· Book Problems
o Discrete-time signal periodicity
 Book examples
ο‚· Example 1.7-a – p55-38
 Book problems
ο‚· 1.16 – p56-39
ο‚· 1.17 – p56-39
ο‚· 1.18
ο‚· 1.58
o Elementary signals operations
 Book problems
ο‚· 1.54
ο‚· 1.55
o Interconnection of operations
 Book problems
ο‚· 1.63
ο‚· 1.65
ο‚· 1.69 - a
**Section 8**
The course title is digital signal processing. Before making processing over a digital signal we
should know the digital signal itself.
Also before studying digital signals we should know signals at all.
So we should know signals then digital signals and finally processing over such digital signals.
A system performs some operations (processing) over its input signals. Because a system
operation (processing) will get applied over an input signal so we should study signals at first.
We concentrated on signals and knew different types of signals like sinusoidal and step and also
knew their properties like (even/odd, periodic/non-periodic).
So we knew these points:
ο‚· Signal definition
ο‚· Signal digitization
ο‚· Signal classification
ο‚· Examples of basic signals
Next is to know how operations applied to such signals. We started by practicing some simple
operations like:
ο‚· Addition
ο‚· Scaling
ο‚· Shifting
After that we will concentrated on systems. A system performs multiple operations over the
signal so we should know how to perform a group of operations on the same signal.
A system with multiple operations will be hard to view using just its equation but it will be easier
to look at its graph. We also should study how to graph a system.
After that we should know properties of a system.
So we will study:
ο‚· System definition
ο‚· System operations
ο‚· Interconnection of operations
ο‚· System properties
System Properties
Linearity
For a system to be linear it must exhibit two properties:
ο‚· Homogeneity: A system is called homogeneous if scaling the input signal by a factor will
also scale the output by the same factor.
So it the input is 𝒙(𝒕) and the output is π’š(𝒕) then scaling the input by factor say
a to have 𝒂𝒙(𝒕) will generate the output scaled by the same factor to be π’‚π’š(𝒕).
So if a sine input signal was having an amplitude of 1 and the output was having
an amplitude of 3. Then scaling the input signal by a factor 2 to double the signal
will also double the output signal.
ο‚· Additivity: A system is called additive if the sum of input signals generates the sum of
their output signals. That is if an input signal is 𝒙 𝟏(𝒕) and its output is π’š 𝟏(𝒕) and
there is another input 𝒙 𝟐(𝒕) generating output π’š 𝟐(𝒕) then 𝒙 𝟏( 𝒕) + 𝒙 π’š(𝒕) will
generate π’š 𝟏( 𝒕) + π’š 𝟐(𝒕).
But what is the goal of determining whether a system is linear or not?
As we previously discussed that a linear signal changes by a fixed amount. This will help us
predict future values of the signal. If a linear signal accepts inputs 1, 2, and 3 to generate
outputs 10, 20, and 30 then we can predict future values like input 4 that will generate output
40. We can predict output because the system is linear and changes by a fixed amount each
time.
To prove that a signal is linear or not we can follow two ways:
1. Algebraic
2. Graph
For each signal to be linear or non-linear it must be both homogenous and additive.
At first we need to prove that it is homogenous.
So for an input 𝒙(𝒕) the output is 𝒙(𝒕) 𝟐
.
For that system to be homogenous then scaling the input by a will also scale the output by the
same scale.
So the input will be 𝒂𝒙(𝒕) and the output is 𝒂 𝟐
𝒙(𝒕) 𝟐
Because the output was not scaled by the same scale as the input the signal is not homogenous.
Because at least one condition was not met then the signal is not linear.
But we can try to find whether the signal is additive or not.
For these two input signals:
𝒙 𝟏(𝒕) => π’š 𝟏(𝒕) 𝟐
𝒙 𝟐(𝒕) => π’š 𝟐(𝒕) 𝟐
The signal will be additive if we 𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕) will generate the sum of their outputs which is
π’š 𝟏(𝒕) 𝟐
+ π’š 𝟐(𝒕) 𝟐
The output for the input 𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕) is:
[𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕)] 𝟐
𝒙 𝟏(𝒕) 𝟐
+ 2𝒙 𝟏(𝒕)𝒙 𝟐(𝒕) + 𝒙 𝟐(𝒕) 𝟐
Because the output is not equal to the sum of the individual outputs we conclude that the signal
is not additive.
Examples:
8.1.1. 𝑦(t) = x(t)
8.1.2. y(t) = x(t βˆ’ 5)
8.1.3. y(t) = x(t + 2) + x(3 βˆ’ t)
8.1.4. y(t) = x(2t βˆ’ 1)
8.1.5. y(t) = x(t2
)
8.1.6. y(t) = x2(t) = [x(t)]2
8.1.7. y(t) = 2x(t) + 4
8.1.8. y(t) = 2x(t) + 4t
8.1.9. y(t) = x(t)cos(t)
Answers:
8.1.1. Linear, Time invariant, causal, memoryless, stable
8.1.2. Linear, Time invariant, causal, memory, stable
8.1.3. Linear, Time variant, non-causal, memory, stable
8.1.4. Linear, Time variant, non-causal, memory, stable
8.1.5. Linear, Time variant, non-causal, memory, stable
8.1.6. Non-linear, Time invariant, causal, memoryless, stable
8.1.7. Non-linear, Time invariant, causal, memoryless, stable
8.1.8. Non-linear, Time variant, causal, memoryless, stable
8.1.9. Linear, Time variant, causal, memoryless, stable
8.1.7. Solution
Homogenous:
Multiply x(t) by a factor say a to be ax(t). Then the result will be 2ax(t) + 4
The output y(t) when get multiplied by factor a is a[2x(t) + 4] = 2ax(t) + 4π‘Ž
Because scaling the input by a factor a does not scale the output by the same scale then the
system is not homogenous. Because at least of the two properties (homogenous & additivity) is
not met then the system is non-linear.
Additivity:
Say there are two signals π‘₯1(t) and π‘₯2(t) generating outputs 𝑦1(t) and 𝑦2(t).
The sum of the two input signals which is π‘₯1(t) + π‘₯2(t) will be the new input to the system. So
the output will be:
𝑦(π‘₯1(t) + π‘₯2(t)) = 2(π‘₯1(t) + π‘₯2(t)) + 4. Eq1
The sum of the outputs is:
𝑦1(t) = 2π‘₯1(t) + 4
𝑦2(t) = 2π‘₯2(t) + 4
𝑦1(t) + 𝑦2(t) = (2π‘₯1(t) + 4) + (2π‘₯2(t) + 4). Eq2
Because Eq1 and Eq2 are not equal then the system is not additive.
Because the system is neither homogenous nor additive then it is non-linear.
8.1.9. Solution
Homogenous:
Multiply x(t) by a factor say a to be ax(t). Then the result will be ax(t)cos(𝑑).
The output y(t) when get multiplied by factor a is a[x(t)cos(𝑑)].
Because scaling the input by a factor a does scale the output by the same scale then the system
is homogenous.
Additivity:
Say there are two signals π‘₯1(t) and π‘₯2(t) generating outputs 𝑦1(t) and 𝑦2(t).
The sum of the two input signals which is π‘₯1(t) + π‘₯2(t) will be the new input to the system. So
the output will be:
𝑦(π‘₯1(t) + π‘₯2(t)) = (π‘₯1(t) + π‘₯2(t))cos(𝑑). Eq1
The sum of the outputs is:
𝑦1(t) = π‘₯1(t)cos(𝑑)
𝑦2(t) = π‘₯2(t)cos(𝑑)
𝑦1(t) + 𝑦2(t) = π‘₯1(t) cos(𝑑) + π‘₯2(t)cos(𝑑) Eq2
Because Eq1 and Eq2 are equal then the system is additive.
Because the system is homogenous and additive then it is linear.
Time Invariance
A system is called time invariant if it does not change over time. But a time variant system does
change.
So the time invariant system responds identically regardless of when the input was applied. Soa
time invariant system does not change by shift (time delay or advance).
If the input was applied at 5PM and generated an output y, so if it was delayed to 4PM or
moved forward in time to 6PM the results will be the same.
If the system was time invariant so we can know the signal behavior in the past and future
because it will get the same output whatever the time is.
To prove that the system is time invariant make sure that if it generates an output y at time 𝒕 𝟏
then it will generate the same output at different times 𝒕 𝟐. That is if:
π’š(𝒕) = 𝒙(𝒕)
And the input was shifted by amount d to be 𝒙(𝒕 βˆ’ 𝒅) then the same output will be generated
but shifted by the same amount d to be π’š(𝒕 βˆ’ 𝒅).
Steps to prove that a system is time invariant or not:
1. Shifting input be replacing each 𝒙(𝒕) by 𝒙(𝒕 βˆ’ 𝒅) to generate an output π’š 𝒅(𝒕).
2. Shifting the output by replacing each 𝒕 by 𝒕 βˆ’ 𝒅 to generate an output π’š(𝒕 βˆ’ 𝒅).
3. If π’š 𝒅(𝒕) = π’š(𝒕 βˆ’ 𝒅) then the system is time invariant.
Examples:
Which of the following systems are time invariant?
Examples:
8.2.1. 𝑦(t) = x(t)
8.2.2. y(t) = x(t βˆ’ 5)
8.2.3. y(t) = x(t + 2) + x(3 βˆ’ t)
8.2.4. y(t) = x(2t βˆ’ 1)
8.2.5. y(t) = x(t2
)
8.2.6. y(t) = x2(t) = [x(t)]2
8.2.7. y(t) = 2x(t) + 4
8.2.8. y(t) = 2x(t) + 4t
8.2.9. y(t) = x(t)cos(t)
Answers:
8.2.1. Linear, Time invariant, causal, memoryless, stable
8.2.2. Linear, Time invariant, causal, memory, stable
8.2.3. Linear, Time variant, non-causal, memory, stable
8.2.4. Linear, Time variant, non-causal, memory, stable
8.2.5. Linear, Time variant, non-causal, memory, stable
8.2.6. Non-linear, Time invariant, causal, memoryless, stable
8.2.7. Non-linear, Time invariant, causal, memoryless, stable
8.2.8. Non-linear, Time variant, causal, memoryless, stable
8.2.9. Linear, Time variant, causal, memoryless, stable
Please note:
The system will be time invariant if and only if the output generated by applying an input shifted
by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will be identical to the same output π’š(𝒕) of the original non-shifted
input but shifted by the same amount d to be π’š(𝒕 βˆ’ 𝒅).
8.2.7.
a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output
πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’.
b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) by replacing each 𝒕 by 𝒕 βˆ’ 𝒅
will generates πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’.
c. Because shifting the input and the output generates the same signal then the
system is time invariant.
8.2.8.
a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output
πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’π‘‘.
b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) will generate an output
πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’(𝒕 βˆ’ 𝒅).
c. Because the results generated by shifting both the input and the output are
different then the system is time variant.
8.2.9.
a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output
𝒙(𝒕 βˆ’ 𝒅)𝒄𝒐𝒔(𝒕).
b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) by replacing each 𝒕 by 𝒕 βˆ’ 𝒅
will generate an output 𝒙(𝒕 βˆ’ 𝒅)𝒄𝒐𝒔(𝒕 βˆ’ 𝒅).
c. Because the results generated by shifting both the input and the output are
different then the system is time variant.
A rule to be used to determine whether a system is time invariant or time variant:
In most cases, if there was an independent variable outside of the input signal then the system
will be time variant.
8.2.7 is time invariant because the independent variable is inside the input signal 𝒙(𝒕) and no 𝒕
outside of it.
8.2.8 & 8.2.9 are time variant because there is at least one independent variable outside the
input signal 𝒙(𝒕).
But this rule fails in some cases like 𝒙(πŸ’ βˆ’ 𝒕). In this case the independent variable 𝒕 is inside
the input signal but the system is time variant.
BIBO Stability
There are multiple ways to define that a system is stable:
1. SISO (Single Input Single Output)
2. SIMO (Single Input Multiple Output)
3. MISO (Multiple Input Single Output)
4. MIMO (Multiple Input Multiple Output)
5. BIBO (Bounded Input Bounded Output)
A system is said to be BIBO stable if for every set of bounded inputs there is a set of bounded
outputs. That is the system is called BIBO (Bounded-Input, Bounded-Output) and BIBO means
that if the number of inputs to the system was less than infinity then the number of outputs
must be less than infinity.
The following conditions must hold:
Where 𝑀 𝑦 and 𝑀 π‘₯ are finite positive integers.
Why stable system is important?
A stable system is better than unstable system because stable systems are predictable and we
can know how it can behave compared to unstable systems.
So if we applied a set of inputs we can predict the system behavior and know its outputs.
This is similar to a programmer that writes code and knows the behavior of the code. For an
input x there will be output y compared to another programmer that writes code and doesn`t
know how it can behave responding to an input x.
If there is another input z, the first programmer is stable and can predict the output responding
to the applied input but the second one is unstable because we can`t predict the output.
Another example is about a car. A stable car system will increase the car speed if the input was
pressing the gas pedal.
Unstable car will not just increase the car speed responding to pressing the gas pedal but can
make unpredicted behavior like opening the windows, closing the air conditioner, firing the
horn.
Examples:
8.3.1. 𝑦(t) = x(t)
8.3.2. y(t) = x(t βˆ’ 5)
8.3.3. y(t) = x(t + 2) + x(3 βˆ’ t)
8.3.4. y(t) = x(2t βˆ’ 1)
8.3.5. y(t) = x(t2
)
8.3.6. y(t) = x2(t) = [x(t)]2
8.3.7. y(t) = 2x(t) + 4
8.3.8. y(t) = 2x(t) + 4t
8.3.9. y(t) = x(t)cos(t)
Answers:
8.3.1. Linear, Time invariant, causal, memoryless, stable
8.3.2. Linear, Time invariant, causal, memory, stable
8.3.3. Linear, Time variant, non-causal, memory, stable
8.3.4. Linear, Time variant, non-causal, memory, stable
8.3.5. Linear, Time variant, non-causal, memory, stable
8.3.6. Non-linear, Time invariant, causal, memoryless, stable
8.3.7. Non-linear, Time invariant, causal, memoryless, stable
8.3.8. Non-linear, Time variant, causal, memoryless, stable
8.3.9. Linear, Time variant, causal, memoryless, stable
Causality
A system is called to be causal if it depends on the present and past values of the input signal
but not on the future values.
Real-time systems are causal because they depend on the present and the past but not on the
future.
A system is called non-causal if it depends on at least one value from the future.
Examples:
8.4.1. 𝑦(t) = x(t)
8.4.2. y(t) = x(t βˆ’ 5)
8.4.3. y(t) = x(t + 2) + x(3 βˆ’ t)
8.4.4. y(t) = x(2t βˆ’ 1)
8.4.5. y(t) = x(t2
)
8.4.6. y(t) = x2(t) = [x(t)]2
8.4.7. y(t) = 2x(t) + 4
8.4.8. y(t) = 2x(t) + 4t
8.4.9. y(t) = x(t)cos(t)
Answers:
8.4.1. Linear, Time invariant, causal, memoryless, stable
8.4.2. Linear, Time invariant, causal, memory, stable
8.4.3. Linear, Time variant, non-causal, memory, stable
8.4.4. Linear, Time variant, non-causal, memory, stable
8.4.5. Linear, Time variant, non-causal, memory, stable
8.4.6. Non-linear, Time invariant, causal, memoryless, stable
8.4.7. Non-linear, Time invariant, causal, memoryless, stable
8.4.8. Non-linear, Time variant, causal, memoryless, stable
8.4.9. Linear, Time variant, causal, memoryless, stable
Memory
A system is said to have memory if it depends on past or future values of the input signal.
A system is said to be memoryless if it depends only on the present values.
Examples:
8.5.1. 𝑦(t) = x(t)
8.5.2. y(t) = x(t βˆ’ 5)
8.5.3. y(t) = x(t + 2) + x(3 βˆ’ t)
8.5.4. y(t) = x(2t βˆ’ 1)
8.5.5. y(t) = x(t2
)
8.5.6. y(t) = x2(t) = [x(t)]2
8.5.7. y(t) = 2x(t) + 4
8.5.8. y(t) = 2x(t) + 4t
8.5.9. y(t) = x(t)cos(t)
Answers:
8.5.1. Linear, Time invariant, causal, memoryless, stable
8.5.2. Linear, Time invariant, causal, memory, stable
8.5.3. Linear, Time variant, non-causal, memory, stable
8.5.4. Linear, Time variant, non-causal, memory, stable
8.5.5. Linear, Time variant, non-causal, memory, stable
8.5.6. Non-linear, Time invariant, causal, memoryless, stable
8.5.7. Non-linear, Time invariant, causal, memoryless, stable
8.5.8. Non-linear, Time variant, causal, memoryless, stable
8.5.9. Linear, Time variant, causal, memoryless, stable
Sheet 4:
ο‚· Problems solved in the section
ο‚· Book problems:
o 1.64 – a, b, g, I, k, l
o 1.67
**Section 10**
Summation Rules
βˆ‘ 𝛼 π‘˜
𝑁
π‘˜=π‘š
=
𝛼 π‘š
βˆ’ 𝛼 𝑁+1
1 βˆ’ 𝛼
βˆ‘ 𝛼 π‘˜
∞
π‘˜=π‘š
=
𝛼 π‘š
1 βˆ’ 𝛼
βˆ‘ 𝑐
𝑁
π‘˜=π‘š
= 𝑐(𝑁 βˆ’ π‘š + 1)
Convolution Sum
𝑦[ 𝑛] = βˆ‘ π‘₯( π‘˜)β„Ž(𝑛 βˆ’ π‘˜)
∞
βˆ’βˆž
Note:
For β„Ž[n], n is replaced by 𝑛 βˆ’ π‘˜. So β„Ž[βˆ’n] will be β„Ž[βˆ’(n βˆ’ k)].
Find the discrete-time convolution sum given the input signals and system impulse response in
the following examples:
Sheet
ο‚· 2.33-a (p200-183)
ο‚· 2.33-b (p200-183)
ο‚· 2.34-a (p201-184)
Sheet-2.33-a (p200-183)
𝑦[𝑛] = 𝑒[𝑛 + 3) βˆ— 𝑒[𝑛 βˆ’ 3]
π‘₯[𝑛] = 𝑒[𝑛 + 3), β„Ž[𝑛] = 𝑒[𝑛 βˆ’ 3]
The first step to solve the convolution problems is to write the correct formula you are to use:
𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜)
∞
βˆ’βˆž
𝑦[𝑛] = βˆ‘ 𝑒(π‘˜ + 3)𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3)
∞
βˆ’βˆž
At this step, the summation is defined from βˆ’βˆž to ∞. So we have to substitute in 𝑒(π‘˜ +
3)𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) by values like βˆ’βˆž, …, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, … , ∞.
Remember that 𝑒(π‘˜ + 3) is only defined at (π‘˜ + 3) > 0 and this requires k to be in this range -
3, -2, -1, 0, 1, 2, 3, … , ∞.
𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) is only defined at 𝑛 βˆ’ π‘˜ βˆ’ 3 β‰₯ 0 == π‘˜ ≀ 𝑛 βˆ’ 3 and this requires k to be in this
range 3, 4, 5, 6, … , ∞.
So why we substitute by values like -5 where nothing of these signals are defined! Ata value like
-5 both of these equations gives 0 and we don`t have to add 0 to the summation and loses time.
The good solution is what saves time by not adding zeros to the summation.
To overcome this problem, the range of the summation should change to just start and end at
values defined by the signals.
The first part 𝑒(π‘˜ + 3) is just defined at π‘˜ β‰₯ βˆ’3 and the second part 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) is just
defined at π‘˜ ≀ 𝑛 βˆ’ 3. The final range at which at least one of these equations are defined is
from βˆ’3 to 𝑛 βˆ’ 3.
So the summation should change to reflect the new range. AT first change the lower end of the
summation to -3 as shown in the next equation:
𝑦[𝑛] = βˆ‘ 1. 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3)
∞
βˆ’3
When the range starts at -3 the signal 𝑒(π‘˜ + 3) will always be 1. So we can replace it by the
constant 1.
Similarly, when the higher end of the summation is replace to be 𝑛 βˆ’ 3 the summation will have
tis form:
𝑦[𝑛] = βˆ‘ 1.1
π‘›βˆ’3
βˆ’3
When the range ends at 𝑛 βˆ’ 3 the signal 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) will always be 1. So we can replace it by
the constant 1.
Finally the summation will be as follows:
𝑦[𝑛] = βˆ‘ 1
π‘›βˆ’3
βˆ’3
Using this summation rule:
βˆ‘ 𝑐
𝑁
π‘˜=π‘š
= 𝑐(𝑁 βˆ’ π‘š + 1)
So
βˆ‘ 1
π‘›βˆ’3
π‘˜=βˆ’3
= 1. ((𝑛 βˆ’ 3) βˆ’ (βˆ’3) + 1) = 𝑛 + 1
The final equation of the solution is as follows:
𝑦[𝑛] = {
𝑛 + 1, 𝑛 β‰₯ 0
0, 𝑛 < 0
Sheet-2.33-b (p200-183)
𝑦[𝑛] = 3 𝑛
𝑒[βˆ’π‘› + 3] βˆ— 𝑒[𝑛 βˆ’ 2]
Solution:
𝑦[𝑛] = βˆ‘ π‘₯[π‘˜]β„Ž[𝑛 βˆ’ π‘˜]
∞
βˆ’βˆž
𝑦[𝑛] = βˆ‘ 3 π‘˜
𝑒[βˆ’π‘˜ + 3] βˆ— 𝑒[𝑛 βˆ’ π‘˜ βˆ’ 2]
∞
βˆ’βˆž
Next is to find the range of the summation.
𝑒[βˆ’π‘˜ + 3] => π‘˜ ≀ 3
𝑒[𝑛 βˆ’ π‘˜ βˆ’ 2] => π‘˜ ≀ 𝑛 βˆ’ 2
The problem is having two upper limits π‘˜ ≀ 3 & π‘˜ ≀ 𝑛 βˆ’ 2.
The solution to this ambiguous situation is as follows:
For 𝑛 βˆ’ 2 ≀ 3 == 𝑛 ≀ 5, the upper limit is 𝑛 βˆ’ 2 and the summation is:
𝑦[𝑛] = βˆ‘ 3 π‘˜
π‘›βˆ’2
βˆ’βˆž
=
3 π‘›βˆ’2+1
1 βˆ’ 3
=
3 π‘›βˆ’1
2
=
3 𝑛
. 3βˆ’1
2
=
3 𝑛
3
2
=
3 𝑛
6
For 𝑛 βˆ’ 2 β‰₯ 4 == 𝑛 β‰₯ 6, the upper limit is 3 and the summation is:
𝑦[𝑛] = βˆ‘ 3 π‘˜
3
βˆ’βˆž
=
33+1
1 βˆ’ 3
=
34
2
=
81
2
Final result is:
𝑦[𝑛] = {
3 𝑛
6
, 𝑛 ≀ 5
81
2
, 𝑛 β‰₯ 6
Sheet-2.34-a (p201-184)
𝑦[n] = x[n] βˆ— 𝑧[𝑛]
In this problem, you are given a graph of two signals and want to find the convolution between
them.
The first step in the solution is to find the algebraic equation that represents each of these
graphs.
π‘₯[n] = u[n + 5] βˆ’ 𝑒[𝑛 βˆ’ 1]
𝑧[n] = u[n] βˆ’ 𝑒[𝑛 βˆ’ 8] + 𝑒[𝑛 βˆ’ 4] βˆ’ 𝑒[𝑛 βˆ’ 8] = u[n] βˆ’ 2𝑒[𝑛 βˆ’ 8] + 𝑒[𝑛 βˆ’ 4]
The impulse response here is β„Ž[n] = 𝑧[𝑛].
Then find the convolution between these equations. Because these signals are discrete so we
will find the convolution sum using this equation:
𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜)
∞
βˆ’βˆž
By substituting in the summation:
𝑦[𝑛] = βˆ‘(u[k + 5] βˆ’ 𝑒[π‘˜ βˆ’ 1]) βˆ— (u[n βˆ’ π‘˜] βˆ’ 2𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] + 𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4])
∞
βˆ’βˆž
The equation can be represented as follows:
𝑦[𝑛] = βˆ‘ u[k + 5]u[n βˆ’ π‘˜] βˆ’ 2 βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8]
∞
βˆ’βˆž
+ βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4]
∞
βˆ’βˆž
∞
βˆ’βˆž
βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]u[n βˆ’ π‘˜]
∞
βˆ’βˆž
+ 2 βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8]
∞
βˆ’βˆž
βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4]
∞
βˆ’βˆž
Next is to determine the range of each summation:
𝑦[𝑛] = βˆ‘ u[k + 5]u[n βˆ’ π‘˜] βˆ’ 2 βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8]
π‘›βˆ’8
βˆ’5
+ βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4]
π‘›βˆ’4
βˆ’5
𝑛
βˆ’5
βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]u[n βˆ’ π‘˜]
𝑛
1
+ 2 βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8]
π‘›βˆ’8
1
βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4]
π‘›βˆ’4
1
After that we are not in need of the unit-step signals because in these ranges they will be 1.
𝑦[𝑛] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
π‘›βˆ’8
βˆ’5
+ βˆ‘ 1
π‘›βˆ’4
βˆ’5
𝑛
βˆ’5
βˆ’ βˆ‘ 1
𝑛
1
+ 2 βˆ‘ 1
π‘›βˆ’8
1
βˆ’ βˆ‘ 1
π‘›βˆ’4
1
But how to find the correct ranges at which the output 𝑦[𝑛] is defined?
Follow that procedure:
1. Give a number to each summation for indexing.
2. Find the least value among all the ranges and set it as the beginning of the first range.
3. Next is to substitute by this value in the equation to find 𝑦[𝑣] where 𝑣 is set to that
value. Reject all the summations that makes the summation invalid. The summation is
valid when it have the higher end value greater than or equal to the lower end value.
For example 0 and 0 or -3 and 1.
4. The remaining valid summations will be the summations used to calculate the input
value.
5. Increment the last value used by 1 and try to find which summations are used to
calculate the new output.
6. Whenever a new valid summation is used to calculate the output value other than the
summations used to calculate the previous value stop. This is an indication that we
reached the end of the previous range started before and reached also the beginning of
a new range. This recent value is the end of the first range and the start value of the
new range.
7. Go back to step 3.
Applying that procedure to our example:
There are 6 summations and will be indexed by numbers from 1 to 6 where each summation
takes an index equal to its position in the equation.
The least value across all ranges is -5.
We need to find 𝑦[βˆ’5]. But make sure that each summation is valid.
𝑦[βˆ’5] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
βˆ’5βˆ’8
βˆ’5
+ βˆ‘ 1
βˆ’5βˆ’4
βˆ’5
βˆ’5
βˆ’5
βˆ’ βˆ‘ 1
βˆ’5
1
+ 2 βˆ‘ 1
βˆ’5βˆ’8
1
βˆ’ βˆ‘ 1
βˆ’5βˆ’4
1
𝑦[βˆ’5] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
βˆ’13
βˆ’5
+ βˆ‘ 1
βˆ’9
βˆ’5
βˆ’5
βˆ’5
βˆ’ βˆ‘ 1
βˆ’5
1
+ 2 βˆ‘ 1
βˆ’13
1
βˆ’ βˆ‘ 1
βˆ’9
1
The last 5 summations are invalid because the higher end is lower than the lower end. Finally to
calculate 𝑦[βˆ’5] we will just use the first summation with index 1.
Next is to increment the last value -5 by 1 to be -4 and substitute to find the summations used
to calculate the output.
𝑦[βˆ’4] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
βˆ’12
βˆ’5
+ βˆ‘ 1
βˆ’8
βˆ’5
βˆ’4
βˆ’5
βˆ’ βˆ‘ 1
βˆ’4
1
+ 2 βˆ‘ 1
βˆ’12
1
βˆ’ βˆ‘ 1
βˆ’8
1
The valid summation is also the first one.
Next is to increment the last value -4 by 1 to be -3 and substitute to find the summations used
to calculate the output.
𝑦[βˆ’3] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
βˆ’11
βˆ’5
+ βˆ‘ 1
βˆ’7
βˆ’5
βˆ’3
βˆ’5
βˆ’ βˆ‘ 1
βˆ’3
1
+ 2 βˆ‘ 1
βˆ’11
1
βˆ’ βˆ‘ 1
βˆ’7
1
The valid summation is also the first one.
The process will be repeated until the value of n used is -1.
When the value used is -1, the output will be as follows:
𝑦[βˆ’1] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
βˆ’9
βˆ’5
+ βˆ‘ 1
βˆ’5
βˆ’5
βˆ’1
βˆ’5
βˆ’ βˆ‘ 1
βˆ’1
1
+ 2 βˆ‘ 1
βˆ’9
1
βˆ’ βˆ‘ 1
βˆ’5
1
Here there is a new valid summation used to calculate the output value. It is the third one. Then
we reached the end of the previous range started before and got the start of a new range.
The previous range is βˆ’5 ≀ 𝑛 ≀ βˆ’2 π‘œπ‘Ÿ βˆ’ 5 ≀ 𝑛 < βˆ’1.
The next range starts at -1.
Increment -1 by 1 to be 0 and substitute to find the output.
After following that procedure the final ranges are:
βˆ’5 ≀ 𝑛 < βˆ’1, 1
βˆ’1 ≀ 𝑛 < 1, 1, 3
1 ≀ 𝑛 < 3, 1, 3, 4
3 ≀ 𝑛 < 5, 1, 2, 3, 4
5 ≀ 𝑛 < 9, 1, 2, 3, 4, 6
9 ≀ 𝑛, 1, 2, 3, 4, 5, 6
Next is to formulate the output of that equation in a better form:
𝑦[𝑛] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1
π‘›βˆ’8
βˆ’5
+ βˆ‘ 1
π‘›βˆ’4
βˆ’5
𝑛
βˆ’5
βˆ’ βˆ‘ 1
𝑛
1
+ 2 βˆ‘ 1
π‘›βˆ’8
1
βˆ’ βˆ‘ 1
π‘›βˆ’4
1
𝑦[𝑛] =
{
0
𝑛 + 6
2𝑛 + 8
𝑛 + 8
βˆ’π‘› + 12
βˆ’2𝑛 βˆ’ 16
0
,
{
𝑛 < 0
βˆ’5 ≀ 𝑛 < βˆ’1
βˆ’1 ≀ 𝑛 < 1
1 ≀ 𝑛 < 3
3 ≀ 𝑛 < 5
5 ≀ 𝑛 < 9
9 ≀ 𝑛 {
𝑆1
𝑆1, 𝑆3
𝑆1, 𝑆3, 𝑆4
𝑆1, 𝑆3, 𝑆4, 𝑆2
𝑆1, 𝑆3, 𝑆4, 𝑆2, 𝑆6
𝐴𝐿𝐿
Lecture Example
π‘₯[n] = u[n] βˆ’ 𝑒[𝑛 βˆ’ 10]
β„Ž[n] =
1
4
(u[n] βˆ’ 𝑒[𝑛 βˆ’ 4])
Book Problems
ο‚· Problem 2.2 –b (p130-113)
Problem 2.2 –b (p130-113)
𝑦[𝑛] = (
1
2
) 𝑛
𝑒[𝑛 βˆ’ 2] βˆ— u[n]
Using this equation:
𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜)
∞
βˆ’βˆž
𝑦[𝑛] = βˆ‘(
1
2
) π‘˜
𝑒[π‘˜ βˆ’ 2]𝑒[𝑛 βˆ’ π‘˜]
∞
βˆ’βˆž
𝑦[𝑛] = βˆ‘(
1
2
) π‘˜
𝑒[π‘˜ βˆ’ 2]𝑒[𝑛 βˆ’ π‘˜]
𝑛
2
𝑦[𝑛] = βˆ‘(
1
2
) π‘˜
𝑛
2
Using this summation rule:
βˆ‘ 𝛼 π‘˜
𝑁
π‘˜=π‘š
=
𝛼 π‘š
βˆ’ 𝛼 𝑁+1
1 βˆ’ 𝛼
𝑦[𝑛] = βˆ‘(
1
2
) π‘˜
𝑛
π‘˜=2
=
(
1
2)2
βˆ’ (
1
2) 𝑛+1
1 βˆ’
1
2
𝑦[𝑛] =
1
4 βˆ’ (
1
2)(
1
2) 𝑛
1
2
𝑦[𝑛] =
1
2
βˆ’ (
1
2
) 𝑛
The ranges are as follows:
𝑦[𝑛] = {
0, 𝑛 < 2
1
2
βˆ’ (
1
2
)
𝑛
, 𝑛 β‰₯ 2
Convolution Integral
𝑦( 𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€
∞
βˆ’βˆž
Note:
For β„Ž(𝑑), n is replaced by 𝑑 βˆ’ 𝑇. So β„Ž[βˆ’π‘‘] will be β„Ž[βˆ’(t βˆ’ T)].
Sheet
ο‚· 2.39-a (p202-185)
ο‚· 2.40-a (p202-185)
2.39-a (p202-185)
π’š(𝒕) = (𝒖(𝒕) βˆ’ 𝒖(𝒕 βˆ’ 𝟐)) βˆ— 𝒖(𝒕)
Following the convolution integral equation:
𝑦(𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€
∞
βˆ’βˆž
𝑦(𝑑) = ∫ π‘₯(𝑒(𝑑) βˆ’ 𝑒(𝑑 βˆ’ 2))𝑒(𝑑)dΞ€
∞
βˆ’βˆž
𝑦(𝑑) = ∫ 𝑒(Ξ€)𝑒(𝑑 βˆ’ Ξ€) βˆ’ ∫ 𝑒(Ξ€ βˆ’ 2)𝑒(𝑑 βˆ’ Ξ€)dΞ€
∞
βˆ’βˆž
∞
βˆ’βˆž
𝑦(𝑑) = ∫ 𝑒(Ξ€)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ ∫ 𝑒(Ξ€ βˆ’ 2)𝑒(𝑑 βˆ’ Ξ€)dΞ€
𝑑
2
𝑑
0
𝑦(𝑑) = ∫ 𝑑΀ βˆ’ ∫ dΞ€
𝑑
2
𝑑
0
Ranges are as follows:
𝑦(𝑑) = {
0
𝑑
2
{
𝑑 < 0
0 ≀ 𝑑 < 2
2 ≀ 𝑑
2.40-a (p202-185)
π‘š(𝑑) = π‘₯(𝑑) βˆ— 𝑦(𝑑)
π‘₯(𝑑) = 𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1)
𝑦(𝑑) = 𝑒(𝑑) βˆ’ 𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2) + 𝑒(𝑑 βˆ’ 4)
𝑦(𝑑) = 𝑒(𝑑) βˆ’ 2𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2)
𝑦(𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€
∞
βˆ’βˆž
𝑦(𝑑) = ∫ (𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1))(𝑒(𝑑) βˆ’ 2𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2))dΞ€
∞
βˆ’βˆž
𝑦(𝑑) = ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ 2 ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€
∞
βˆ’βˆž
∞
βˆ’βˆž
+ ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€
∞
βˆ’βˆž
βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€
∞
βˆ’βˆž
+ 2 ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€
∞
βˆ’βˆž
βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€
∞
βˆ’βˆž
𝑦(𝑑) = ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ 2 ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€
π‘‘βˆ’4
βˆ’1
𝑑
βˆ’1
+ ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€
π‘‘βˆ’2
βˆ’1
βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€
𝑑
1
+ 2 ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€
π‘‘βˆ’4
1
βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€
π‘‘βˆ’2
1
𝑦(𝑑) = ∫ dΞ€ βˆ’ 2 ∫ dΞ€
π‘‘βˆ’4
βˆ’1
+ ∫ d΀
π‘‘βˆ’2
βˆ’1
βˆ’ ∫ dΞ€
𝑑
1
+ 2 ∫ d΀
π‘‘βˆ’4
1
βˆ’ ∫ dΞ€
π‘‘βˆ’2
1
𝑑
βˆ’1
Ranges are:
𝑦[𝑛] =
{
0
𝑑 + 1
𝑑 + 1
10 βˆ’ 2𝑑
0
,
{
𝑑 < βˆ’1
βˆ’1 ≀ 𝑑 < 1
1 ≀ 𝑑 < 3
3 ≀ 𝑑 < 5
5 ≀ 𝑑 {
𝐼1
𝐼1, 𝐼3, 𝐼4
𝐼1, 𝐼3, 𝐼4, 𝐼2, 𝐼6
𝐼1, 𝐼3, 𝐼4, 𝐼2, 𝐼6, 𝐼5
Lecture Example
Book Problems
ο‚· Problem 2.6 (p141-124)
Sheet 5
ο‚· Book Problems
o Problem 2.2 – a, b, c, d, f (p130-113)
o Problem 2.5 (p140-123)
o Problem 2.6 (p141-124)
ο‚· Sheet Problems
o 2.33-a, b, c, e, i
o 2.34-all
o 2.39-a, b, d, e, f, i, j, k
o 2.40-all except (o)
***Section 11***
Unit Impulse as System Impulse Response
The effect of using the unit impulse signal over an input signal is to time shift the input signal by
the time shift value in the unit impulse.
π‘₯(𝑑) βˆ— Ξ΄(t βˆ’ Ο„) = π‘₯(𝑑 βˆ’ Ο„)
Example 11.1:
Find the convolution integral 𝑦(𝑑) when the input signal is π‘₯(𝑑) = 𝑒(𝑑 βˆ’ 3) and the system
impulse response is β„Ž(𝑑) = Ξ΄(t + 2) + Ξ΄(t βˆ’ 4).
Solution:
𝑦( 𝑑) = π‘₯( 𝑑) βˆ— β„Ž(𝑑)
𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3) βˆ— [Ξ΄(t + 2) + Ξ΄(t βˆ’ 4)]
Using the distributive property of LTI systems:
𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3) βˆ— Ξ΄(t + 2) + u(t) βˆ— Ξ΄(t βˆ’ 4)
Using the convolution by unit impulse property:
𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3 + 2) + u(t βˆ’ 4)
𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 1) + u(t βˆ’ 4)
System Properties
Each property of the LTI systems will apply for both discrete-time and continuous-time signals.
Distributive
π‘₯[𝑛] βˆ— [β„Ž1[𝑛] Β± β„Ž2[𝑛]] = π‘₯[𝑛] βˆ— β„Ž1[𝑛] Β± π‘₯[𝑛] βˆ— β„Ž2[𝑛]
π‘₯( 𝑑) βˆ— [β„Ž1( 𝑑) Β± β„Ž2( 𝑑)] = π‘₯( 𝑑) βˆ— β„Ž1( 𝑑) Β± π‘₯( 𝑑) βˆ— β„Ž2(𝑑)
Example 11.2:
Using the distributive property how to construct the same output illustrated in the following
diagram using only one circuit? Just draw the block diagram.
Answer:
Using the distributive property the system can be designed using a cascaded diagram rather
than parallel to have just a single circuit as shown in the following diagram.
Associative
(π‘₯[ 𝑛] βˆ— β„Ž1[ 𝑛]) βˆ— β„Ž2[ 𝑛] = π‘₯[ 𝑛] βˆ— (β„Ž1[ 𝑛] βˆ— β„Ž2[ 𝑛])
[π‘₯( 𝑑) βˆ— β„Ž1( 𝑑)] βˆ— β„Ž2( 𝑑) = π‘₯[ 𝑛] βˆ— [β„Ž1( 𝑑) βˆ— β„Ž2( 𝑑)]
Example 11.3:
Using the associative property how to construct the same output illustrated in the following
diagram using only one circuit? Just draw the block diagram.
Answer:
Using the associative property the system can be designed as shown in the following diagram to
have just a single circuit.
Commutative
β„Ž1[ 𝑛] βˆ— β„Ž2[ 𝑛] = β„Ž2[ 𝑛] βˆ— β„Ž1[ 𝑛]
β„Ž1(𝑑) βˆ— β„Ž2(𝑑) = β„Ž2(𝑑) βˆ— β„Ž1(𝑑)
Example 11.4:
Using the following block diagram find the overall system impulse response.
Steps to get the impulse response is as follows:
1. Divide each parallel connection into two serial connections
2. If any of these serial connections have a parallel connection divide it until reaching the
most inner serial connection.
3. Combine all of the impulse responses in each serial connection to create a single
response using convolution.
4. When the individual serial connections in the parallel connection have single response
combine the parallel connection serial connections into a single response using
summation.
5. Go to the higher parallel connection and repeat steps 1 to 4 until having a single
response for the overall system.
Solution:
Sheet Problems:
ο‚· 2.46-a(p205-188)
ο‚· 2.47-a(p205-188)
Linear Time Invariant (LTI) Systems Properties
Memoryless
The discrete-time LTI system is memoryless if and only if:
β„Ž[π‘˜] = 𝑐δ[k]
The continuous-time LTI system is memoryless if and only if:
β„Ž(𝑑) = 𝑐δ(t)
Causality
The discrete-time LTI system is causal if and only if:
β„Ž[π‘˜] = 0, π‘˜ < 0
The continuous-time LTI system is causal if and only if:
β„Ž(𝑑) = 0, 𝑑 < 0
Stability
The discrete-time LTI system is stable if and only if:
ο‚₯ο€Όοƒ₯
ο‚₯
ο‚₯ο€­
)(nh
The continuous-time LTI system is stable if and only if:
ο‚₯
ο‚₯
ο‚₯ο€­
dtth )(
Note that an impulse response with this part π‘Ž 𝑏
is stable only if a<1 or b<0.
Examples
)(
2
1
)(
)1()(
)(2)(
)()(
2
nunh
nuenh
nunh
nunh
n
n
n
n
οƒ·
οƒΈ
οƒΆ



ο€½
ο€­ο€½
ο€­ο€½
ο€½ 
First one is stable only if  < 1.
Second one is unstable because 2 > 1.
Third one is unstable because e > 1.
Fourth one is stable because 1/2 < 1.
Lecture Examples:
)(
2
1
)(
)1()(
)(2)(
)()(
)(
)1(2)()(
)1()1()(
)()(
2
2
nunh
nuenh
nunh
tueth
eth
tututh
tututh
nunh
n
n
n
at
t
n
οƒ·
οƒΈ
οƒΆ



ο€½
ο€­ο€½
ο€­ο€½
ο€½
ο€½
ο€­ο€­ο€½

ο€½
ο€­

System Block Diagram
Book Problems:
ο‚· 2.9-(p149-132)
Sheet Problems:
ο‚· 2.54-b
Section 11 Sheet
ο‚· Problems Solved in the Section
ο‚· Book Problems
o 2.8-(p149-132)
o 2.9-(p149-132)
o 2.10-(p153-136)
ο‚· Book Sheet
o 2.46
o 2.47
o 2.48
o 2.49
o 2.57: Just draw the block diagram of the system.
***Section 12***
Introduction to Fourier Analysis
We have previously discussed the elementary signals in digital signal processing like unit step,
unit impulse, ramp, sinusoidal, and exponential.
We also said that the basic functions of these signals are to create new signals or to process an
existing signal.
In the previous two sections we knew how a signal (DT/CT) can be represented using the unit
impulse (delta) signals.
In this section we will know how to represent a signal (DT/CT) using the sinusoidal signal.
Fourier theory is what represents the signals using only sine signals. When the signal is
composed of sine waves we move from the time domain to the frequency domain.
The following figure illustrates how useful is the frequency domain.
Example to show importance of the frequency domain
The following example illustrates the benefits of using the frequency domain.
Assume we need to delete the green and red signals from the following signal and leave only the
blue signal. How to do that task in both time and frequency domain?
It seems impossible to do such task in time domain because there is overlab among all the three
signals in time domain.
The solution is to use the frequency domain.
The previous figure is not what appears on the final result but a one like this appears. We use
the previous figure just for simplification.
The individual signals are shown as follows:
The general solution using the frequency domain is as follows:
Investigate the signal and find the different frequencies constituting the signal. Assume there
are three signals 𝐴, 𝐡, 𝐢 with the frequencies 𝐹𝐴, 𝐹𝐡, π‘Žπ‘›π‘‘ 𝐹𝐢 respectively and you need the 𝐴
signal and remove the other signals. Because the 𝐴 signal has the πΉπ‘Ž frequency then the solution
is to create a filter that passes the πΉπ‘Ž frequency and stop the other two frequencies.
For our example, the solution is to know the frequencies of both the red and green signals and
cut-off these frequencies to leave only the blue signal.
The red signal has a frequency equal to .3Hz and the green signal has a frequency equal to 1Hz.
Using a filter we can remove these frequencies to leave only the blue signal.
Fourier Representations
There are four representations to Fourier each targets a class of signals. The classes are based
on whether the signal is DT or CT and whether it is periodic or non-periodic.
We will use the FT class. Now there is a fast version of the FT called Fast FT (FFT).
Fourier Transform
Moving between Time-Domain and Frequency-Domain
For a discrete-time signal π‘₯(𝑑), the Fourier transform (FT) of the signal 𝑋(π‘—πœ”) is computed by
the following equation:
𝑋(π‘—πœ”) = ∫ π‘₯(𝑑)π‘’βˆ’π‘—πœ”π‘‘
∞
βˆ’βˆž
For a given frequency-domain representation 𝑋(π‘—πœ”), the time-domain version 𝑋(𝑑) is computed
by the inverse Fourier transform (IFT) is as follows:
π‘₯(𝑑) =
1
2πœ‹
∫ 𝑋(π‘—πœ”)π‘’βˆ’π‘—πœ”π‘‘
∞
βˆ’βˆž
Note:
πœ” = 2πœ‹π‘“
∫ 𝑒 𝑑
𝑏
π‘Ž
𝑑𝑑 =
𝑒 π‘˜
π‘˜
A special signal to find the FT of is delta.
𝐹𝑇{Ξ΄( 𝑑)} = 1
Useful Rules
𝑒 π‘—πœƒ
= cos( πœƒ) + 𝑗𝑠𝑖𝑛(πœƒ)
cos(𝑑) =
( 𝑒𝑗𝑑 + π‘’βˆ’π‘—π‘‘)
2
sin(𝑑) =
( 𝑒𝑗𝑑 βˆ’ π‘’βˆ’π‘—π‘‘)
2𝑗
cosh(𝑑) =
( 𝑒𝑑 + π‘’βˆ’π‘‘)
2
sinh(𝑑) =
( 𝑒𝑑 βˆ’ π‘’βˆ’π‘‘)
2
Some uses of the Fourier transform in signal processing
ο‚· Able to find the frequency components of the signal.
ο‚· Convolution for time-domain signals is equivalent to multiplication in frequency-
domain:
𝑧(𝑑) = π‘₯(𝑑) βˆ— β„Ž(𝑑)
𝑍(𝑑) = 𝑋(𝑑). 𝐻(𝑑)
Using FFT, it is faster to implement the convolution in frequency-domain rather than
time-domain.
ο‚· Signal Energy.
ο‚· Signal Power.
Exercises
FT
ο‚·
ο‚·
ο‚· 3.14-e – (p262-245)
IFT
ο‚· 𝑋(π‘—πœ”) = π‘’βˆ’2πœ”
𝑒(πœ”)
***Section 13***
𝑋( 𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜
∞
βˆ’βˆž
Examples
Example 1
Find Z-transform of this signal:
π‘₯(𝑛) = {
π‘Ž 𝑛
, 𝑛 β‰₯ 0
0, 𝑂. π‘Š
π‘₯(𝑛) = π‘Ž 𝑛
𝑒(𝑛)
Using this equation to find the Z-transform:
𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ‘ π‘Ž π‘˜
𝑒(π‘˜)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ‘ π‘Ž π‘˜
π‘§βˆ’π‘˜
∞
0
𝑋(𝑧) = βˆ‘(π‘Žπ‘§βˆ’1
) π‘˜
∞
0
𝑋(𝑧) = βˆ‘(
π‘Ž
𝑧
) π‘˜
∞
0
Using this equation to find the summation result:
βˆ‘ 𝛼 π‘˜
=
∞
π‘˜=π‘š
𝛼 π‘š
1 βˆ’ 𝛼
𝑋(𝑧) = βˆ‘ (
π‘Ž
𝑧
)
π‘˜
=
(
π‘Ž
𝑧)
0
1 βˆ’
π‘Ž
𝑧
∞
0
=
1
1 βˆ’
π‘Ž
𝑧
By multiplying the nominator and denominator by 𝑧:
𝑋(𝑧) =
𝑧
𝑧 βˆ’ π‘Ž
ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it
undefined like ∞.
From this equation to be defined:
𝑋(𝑧) = βˆ‘(
π‘Ž
𝑧
) π‘˜
∞
0
The |
π‘Ž
𝑧
| value must be less than 1. So ROC is |
π‘Ž
𝑧
| < 1 𝑂𝑅 |𝑧| > |π‘Ž|.
Next is to find poles and zeros.
Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that
makes the nominator equal to 0.
Zeros in this case are just 𝑧 = 0.
Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 = π‘Ž.
Example 2
Find poles and zeros of the following example:
𝑋(𝑧) =
𝑧(𝑧 βˆ’
1
3)
(𝑧 βˆ’ 2)(𝑧 +
1
2)
To find zeros:
𝑧 (𝑧 βˆ’
1
3
) = 0
𝑧 = 0 𝑂𝑅 (𝑧 βˆ’
1
3
) = 0
Zeros are 0 and
1
3
.
To find poles:
(𝑧 βˆ’ 2) (𝑧 +
1
2
) = 0
(𝑧 βˆ’ 2) = 0 𝑂𝑅 (𝑧 +
1
2
) = 0
So poles are 2 and βˆ’
1
2
.
Example 3
Find Z-transform of this signal:
π‘₯(𝑛) = βˆ’π‘Ž 𝑛
𝑒(βˆ’π‘› βˆ’ 1)
Using this equation to find the Z-transform:
𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘ π‘Ž π‘˜
𝑒(βˆ’π‘˜ βˆ’ 1)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘ π‘Ž π‘˜
π‘§βˆ’π‘˜
1
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘(π‘Žπ‘§βˆ’1
) π‘˜
1
βˆ’βˆž
= βˆ’ βˆ‘(π‘Žπ‘§βˆ’1
)βˆ’π‘˜
∞
1
= βˆ’ βˆ‘(π‘Žβˆ’1
𝑧) π‘˜
∞
1
𝑋(𝑧) = βˆ’ βˆ‘(
𝑧
π‘Ž
) π‘˜
∞
1
Using this equation to find the summation result:
βˆ‘ 𝛼 π‘˜
=
∞
π‘˜=π‘š
𝛼 π‘š
1 βˆ’ 𝛼
𝑋(𝑧) = βˆ’ βˆ‘ (
π‘Ž
𝑧
)
π‘˜
= βˆ’
(
𝑧
π‘Ž)
1
1 βˆ’
𝑧
π‘Ž
∞
0
= βˆ’
𝑧
π‘Ž
1 βˆ’
𝑧
π‘Ž
By multiplying the nominator and denominator by π‘Ž:
𝑋(𝑧) = βˆ’
𝑧
π‘Ž βˆ’ 𝑧
=
𝑧
𝑧 βˆ’ π‘Ž
ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it
undefined like ∞.
From this equation to be defined:
𝑋(𝑧) = βˆ’ βˆ‘(
𝑧
π‘Ž
) π‘˜
∞
1
The |
𝑧
π‘Ž
| value must be less than 1. So ROC is |
𝑧
π‘Ž
| < 1 𝑂𝑅 |𝑧| < |π‘Ž|.
Next is to find poles and zeros.
Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that
makes the nominator equal to 0.
Zeros in this case are just 𝑧 = 0.
Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 = π‘Ž.
Example 4
Find Z-transform of each of this signal:
π‘₯(𝑛) = βˆ’(
1
3
) 𝑛
𝑒(βˆ’π‘› βˆ’ 1)
Using this equation to find the Z-transform:
𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘(
1
3
) π‘˜
𝑒(βˆ’π‘˜ βˆ’ 1)π‘§βˆ’π‘˜
∞
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘(
1
3
) π‘˜
π‘§βˆ’π‘˜
1
βˆ’βˆž
𝑋(𝑧) = βˆ’ βˆ‘(
1
3
π‘§βˆ’1
) π‘˜
1
βˆ’βˆž
= βˆ’ βˆ‘(
1
3
π‘§βˆ’1
)βˆ’π‘˜
∞
1
= βˆ’ βˆ‘(3𝑧) π‘˜
∞
1
𝑋(𝑧) = βˆ’ βˆ‘(3𝑧) π‘˜
∞
1
Using this equation to find the summation result:
βˆ‘ 𝛼 π‘˜
=
∞
π‘˜=π‘š
𝛼 π‘š
1 βˆ’ 𝛼
𝑋(𝑧) = βˆ’ βˆ‘ (
𝑧
3
)
π‘˜
= βˆ’
(3𝑧)1
1 βˆ’
𝑧
3
∞
0
= βˆ’
3𝑧
1 βˆ’ 3𝑧
By dividing the nominator and denominator by 3:
𝑋(𝑧) = βˆ’
𝑧
1
3 βˆ’ 𝑧
=
𝑧
𝑧 βˆ’
1
3
ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it
undefined like ∞.
From this equation to be defined:
𝑋(𝑧) = βˆ’ βˆ‘(3𝑧) π‘˜
∞
1
The |3𝑧| value must be less than 1. So ROC is |3𝑧| < 1 𝑂𝑅 |𝑧| < |
1
3
|.
Next is to find poles and zeros.
Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that
makes the nominator equal to 0.
Zeros in this case are just 𝑧 = 0.
Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 =
1
3
.
GUI Task
Create a MATLAB GUI application as shown in the following diagram:
The application have 8 buttons divided as 2 buttons per group. Each group performs an
operation and its opposite.
Each button shows both the discrete and continuous versions of the signal except for the
Continuous & Discrete group it will show only Continuous or Discrete signal.
For example clicking on APeriodic button will show a non-periodic signal in both continuous and
discrete forms as shown in the following diagram:

More Related Content

What's hot

OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSvishalgohel12195
Β 
Introduction to Digital Signal processors
Introduction to Digital Signal processorsIntroduction to Digital Signal processors
Introduction to Digital Signal processorsPeriyanayagiS
Β 
Signals and systems( chapter 1)
Signals and systems( chapter 1)Signals and systems( chapter 1)
Signals and systems( chapter 1)Fariza Zahari
Β 
Comparative Study and Performance Analysis of different Modulation Techniques...
Comparative Study and Performance Analysis of different Modulation Techniques...Comparative Study and Performance Analysis of different Modulation Techniques...
Comparative Study and Performance Analysis of different Modulation Techniques...Souvik Das
Β 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1Rakesh kumar jha
Β 
Sns slide 1 2011
Sns slide 1 2011Sns slide 1 2011
Sns slide 1 2011cheekeong1231
Β 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transformop205
Β 
Signals & systems
Signals & systems Signals & systems
Signals & systems SathyaVigneshR
Β 
Emitter Coupled Logic (ECL)
Emitter Coupled Logic (ECL)Emitter Coupled Logic (ECL)
Emitter Coupled Logic (ECL)shahin kadir
Β 
VHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESVHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESkarthik kadava
Β 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLanand hd
Β 
Chapter1 - Signal and System
Chapter1 - Signal and SystemChapter1 - Signal and System
Chapter1 - Signal and SystemAttaporn Ninsuwan
Β 
Phase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignPhase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignSimen Li
Β 
Lecture123
Lecture123Lecture123
Lecture123benjoshpp
Β 
Waveguides and its Types Field view and structures
Waveguides and its Types Field view and structuresWaveguides and its Types Field view and structures
Waveguides and its Types Field view and structuresAvishishtKumar
Β 
2. classification of signals
2. classification of signals 2. classification of signals
2. classification of signals MdFazleRabbi18
Β 
Integrated circuit unit 2 notes
Integrated circuit unit 2 notesIntegrated circuit unit 2 notes
Integrated circuit unit 2 notesVINOD YADAV
Β 

What's hot (20)

OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALS
Β 
Introduction to Digital Signal processors
Introduction to Digital Signal processorsIntroduction to Digital Signal processors
Introduction to Digital Signal processors
Β 
Introduction to dsp
Introduction to dspIntroduction to dsp
Introduction to dsp
Β 
Signals and systems( chapter 1)
Signals and systems( chapter 1)Signals and systems( chapter 1)
Signals and systems( chapter 1)
Β 
Comparative Study and Performance Analysis of different Modulation Techniques...
Comparative Study and Performance Analysis of different Modulation Techniques...Comparative Study and Performance Analysis of different Modulation Techniques...
Comparative Study and Performance Analysis of different Modulation Techniques...
Β 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1
Β 
Sns slide 1 2011
Sns slide 1 2011Sns slide 1 2011
Sns slide 1 2011
Β 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transform
Β 
Signals & systems
Signals & systems Signals & systems
Signals & systems
Β 
Emitter Coupled Logic (ECL)
Emitter Coupled Logic (ECL)Emitter Coupled Logic (ECL)
Emitter Coupled Logic (ECL)
Β 
VHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESVHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLES
Β 
Pcm
PcmPcm
Pcm
Β 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDL
Β 
Sampling
SamplingSampling
Sampling
Β 
Chapter1 - Signal and System
Chapter1 - Signal and SystemChapter1 - Signal and System
Chapter1 - Signal and System
Β 
Phase-locked Loops - Theory and Design
Phase-locked Loops - Theory and DesignPhase-locked Loops - Theory and Design
Phase-locked Loops - Theory and Design
Β 
Lecture123
Lecture123Lecture123
Lecture123
Β 
Waveguides and its Types Field view and structures
Waveguides and its Types Field view and structuresWaveguides and its Types Field view and structures
Waveguides and its Types Field view and structures
Β 
2. classification of signals
2. classification of signals 2. classification of signals
2. classification of signals
Β 
Integrated circuit unit 2 notes
Integrated circuit unit 2 notesIntegrated circuit unit 2 notes
Integrated circuit unit 2 notes
Β 

Similar to Introduction to Digital Signal Processing (DSP) - Course Notes

Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applicationsDeepRaval7
Β 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal ProcessingPRABHAHARAN429
Β 
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...AIMST University
Β 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)tamil arasan
Β 
Classification of-signals-systems-ppt
Classification of-signals-systems-pptClassification of-signals-systems-ppt
Classification of-signals-systems-pptMayankSharma1126
Β 
A Numerical Analytic Continuation and Its Application to Fourier Transform
A Numerical Analytic Continuation and Its Application to Fourier TransformA Numerical Analytic Continuation and Its Application to Fourier Transform
A Numerical Analytic Continuation and Its Application to Fourier TransformHidenoriOgata
Β 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transformSimranjit Singh
Β 
Lecture 2.pptx
Lecture 2.pptxLecture 2.pptx
Lecture 2.pptxvenala3745
Β 
Seismic data processing introductory lecture
Seismic data processing introductory lectureSeismic data processing introductory lecture
Seismic data processing introductory lectureAmin khalil
Β 
Signals and Systems-Unit 1 & 2.pptx
Signals and Systems-Unit 1 & 2.pptxSignals and Systems-Unit 1 & 2.pptx
Signals and Systems-Unit 1 & 2.pptxSelamawitHadush1
Β 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Charlton Inao
Β 
Inverse trig functions
Inverse trig functionsInverse trig functions
Inverse trig functionsJessica Garcia
Β 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfarihantelectronics
Β 
control engineering revision
control engineering revisioncontrol engineering revision
control engineering revisionragu nath
Β 
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Simen Li
Β 
04 image transformations_ii
04 image transformations_ii04 image transformations_ii
04 image transformations_iiankit_ppt
Β 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing ssuser2797e4
Β 

Similar to Introduction to Digital Signal Processing (DSP) - Course Notes (20)

Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applications
Β 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
Β 
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...Lecture Notes:  EEEC6440315 Communication Systems - Time Frequency Analysis -...
Lecture Notes: EEEC6440315 Communication Systems - Time Frequency Analysis -...
Β 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)
Β 
Classification of-signals-systems-ppt
Classification of-signals-systems-pptClassification of-signals-systems-ppt
Classification of-signals-systems-ppt
Β 
A Numerical Analytic Continuation and Its Application to Fourier Transform
A Numerical Analytic Continuation and Its Application to Fourier TransformA Numerical Analytic Continuation and Its Application to Fourier Transform
A Numerical Analytic Continuation and Its Application to Fourier Transform
Β 
Signal Processing Homework Help
Signal Processing Homework HelpSignal Processing Homework Help
Signal Processing Homework Help
Β 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
Β 
Lecture 2.pptx
Lecture 2.pptxLecture 2.pptx
Lecture 2.pptx
Β 
Lecture 9
Lecture 9Lecture 9
Lecture 9
Β 
Seismic data processing introductory lecture
Seismic data processing introductory lectureSeismic data processing introductory lecture
Seismic data processing introductory lecture
Β 
Signals and Systems-Unit 1 & 2.pptx
Signals and Systems-Unit 1 & 2.pptxSignals and Systems-Unit 1 & 2.pptx
Signals and Systems-Unit 1 & 2.pptx
Β 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
Β 
Inverse trig functions
Inverse trig functionsInverse trig functions
Inverse trig functions
Β 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdf
Β 
Laplace transformation
Laplace transformationLaplace transformation
Laplace transformation
Β 
control engineering revision
control engineering revisioncontrol engineering revision
control engineering revision
Β 
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Β 
04 image transformations_ii
04 image transformations_ii04 image transformations_ii
04 image transformations_ii
Β 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
Β 

More from Ahmed Gad

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmAhmed Gad
Β 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...Ahmed Gad
Β 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionAhmed Gad
Β 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Ahmed Gad
Β 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesAhmed Gad
Β 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Ahmed Gad
Β 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
Β 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Ahmed Gad
Β 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with RegularizationAhmed Gad
Β 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleAhmed Gad
Β 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisAhmed Gad
Β 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepAhmed Gad
Β 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientAhmed Gad
Β 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - RevisionAhmed Gad
Β 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAhmed Gad
Β 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsAhmed Gad
Β 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleAhmed Gad
Β 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingAhmed Gad
Β 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...Ahmed Gad
Β 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Ahmed Gad
Β 

More from Ahmed Gad (20)

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
Β 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
Β 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd Edition
Β 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Β 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
Β 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Β 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
Β 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Β 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with Regularization
Β 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Β 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
Β 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Β 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
Β 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - Revision
Β 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Β 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNs
Β 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by Example
Β 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
Β 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
Β 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Β 

Recently uploaded

Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...Nguyen Thanh Tu Collection
Β 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
Β 
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)lakshayb543
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
Β 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
Β 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
Β 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Β 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A BeΓ±a
Β 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
Β 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
Β 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
Β 

Recently uploaded (20)

Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
Β 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
Β 
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Β 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Β 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
Β 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
Β 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Β 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
Β 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
Β 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
Β 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Β 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
Β 

Introduction to Digital Signal Processing (DSP) - Course Notes

  • 1. Introduction to Digital Signal Processing (DSP) Course Notes By Ahmed Fawzy Gad Faculty of Computers and Information (FCI) Menoufia University Egypt ahmed.fawzy@ci.menofia.edu.eg β€«Ψ§Ω„Ω…Ω†ΩˆΩΩŠΨ©β€¬ ‫جامعة‬ β€«ΩˆΨ§Ω„Ω…ΨΉΩ„ΩˆΩ…Ψ§Ψͺ‬ ‫الحاسباΨͺ‬ β€«ΩƒΩ„ΩŠΨ©β€¬ β€«Ω‚Ψ³Ω…β€¬β€«Ψ§Ω„Ω…ΨΉΩ„ΩˆΩ…Ψ§Ψͺ‬ ‫ΨͺΩƒΩ†ΩˆΩ„ΩˆΨ¬ΩŠΨ§β€¬ β€«Ω…ΨΉΨ§Ω„Ψ¬Ψ©β€¬β€«Ψ§Ω„Ψ±Ω‚Ω…ΩŠΨ©β€¬ ‫اΨ₯Ω„Ψ΄Ψ§Ψ±Ψ§Ψͺ‬ MENOUFIA UNIVERSITY FACULTY OF COMPUTERS AND INFORMATION INFORMATION TECHNOLOGY DEPARTMENT DIGITAL SIGNAL PROCESSING β€«Ψ§Ω„Ω…Ω†ΩˆΩΩŠΨ©β€¬ ‫جامعة‬
  • 2. Course Syllabus Section 1, 2 ο‚· MATLAB Section 3, 4 ο‚· Revision Section 5 ο‚· Introduction to DSP ο‚· What is signal? ο‚· What is system? ο‚· Signal Classification o Continuous & Discrete o Even & Odd  Using graph  Using algebra  Even and Odd Signals Characteristics  Finding even and odd components o Periodic & Non-periodic  Continuous only  Using graph  Using algebra o Deterministic & Random Section 6 ο‚· Difference between notation of discrete and continuous signals ο‚· Basic Operations on Signals o Operations on dependent variables  Amplitude scaling  Addition  Multiplication  Differentiation  Integration o Operations on independent variables  Time scaling  Reflection  Time shifting Section 7 ο‚· Elementary signals in digital signal processing o Exponential o Sinusoidal
  • 3.  Discrete-time signal periodicity o Exponentially damped sinusoidal o Unit-step o Unit-impulse o Ramp ο‚· Basic Operations on the elementary signals ο‚· System o System Definition o Grouping operations to create a system o Interconnection of operations ο‚· MATLAB Graphical User Interface (GUI) o Signal Basic Operations Program Section 8 ο‚· System Cont. o System Properties  Linear ο‚· Homogenous o Algebraic o Graph ο‚· Additive o Algebraic o Graph  Time invariant  Memoryless  Causal  Stable ο‚· Stable systems ο‚· Why stable system is important? Section 9 Midterm Exam Section 10 ο‚· Summation Rules ο‚· Convolution o Discrete  Convolution Sum o Continuous  Convolution Integral Section 11 ο‚· Unit Impulse as System Impulse Response ο‚· System Properties (Discrete & Continuous) o Distributive o Associative o Commutative
  • 4. ο‚· Linear Time Invariant (LTI) Systems Properties (Discrete & Continuous) o Memory o Causality o Stability ο‚· System Block Diagram Section 12 ο‚· Introduction to Fourier Transform o What is Fourier? o Why Using Frequency Domain? o Example to show importance of the frequency domain. o Fourier Representations. ο‚· Fourier Transform o Moving between Time-Domain and Frequency-Domain o Useful Rules o Some uses of the Fourier transform in signal processing ο‚· Exercises o FT o IFT Section 13 ο‚· Steps to find Z-transform of a signal 1. Find 𝑋(𝑧) 2. Determine Region Of Convergence (ROC) 3. Calculate Poles and Zeros ο‚· Z-transform examples
  • 5. ***Section 5*** Introduction to DSP Some students asked why using MATLAB and what is the relation between MATLAB & the course of digital signal processing. Just we will make a hint that to process a signal a signal processing tool is used. MATLAB is one of these tools and there are other tools like Python. This diagram helps students to understand the journey of a signal from being an input continuous signal to being an output continuous signal. Digital signal processing is responsible for the operations to convert the signal from continuous to discrete, processing it and converting it back to continuous. Even and Odd Signals Characteristics ο‚· General Characteristics o π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) o π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) o π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑) ο‚· Addition Characteristics o π‘₯ 𝑒 + 𝑦𝑒 = 𝑧 𝑒 o π‘₯ π‘œ + π‘¦π‘œ = 𝑧 π‘œ o π‘₯ 𝑒 + π‘¦π‘œ = 𝑧 𝑒 + 𝑧 π‘œ ο‚· Multiplication Characteristics o π‘₯ 𝑒 * 𝑦𝑒 = 𝑧 𝑒 o π‘₯ π‘œ * π‘¦π‘œ = 𝑧 𝑒 o π‘₯ 𝑒 * π‘¦π‘œ = 𝑧 π‘œ Numbers Classification Units of measurements
  • 6. Signal Classification Even and Odd We can determine whether a function is even or odd using: 1. Graph 2. Algebra Even and Odd using Graph Some functions can be easily classified as either even or odd from its graph. If the function can be folded into two parts around the vertical axis and be identical (symmetric about vertical axis) then the function is even. If the graph is antisymmetric about the time origin it is odd. Examples: **Notebook** Even and Odd using Algebraic Operations We should know these characteristics at first: General Characteristics π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑) Examples: Determine whether the following signals are even or odd 1. f(t) = sin(t) 2. f(t) = cos(t) 3. f(t) = t + 5 4. **Example 1.1** p18-35 Answers: 1. Odd 2. Even 3. Not even and not odd 4. Odd
  • 7. Finding even and odd components Revise the previous characteristics. Find the equations to calculate 𝒙 𝒆(𝒕) and 𝒙 𝒐(𝒕). The equation π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) has two unknowns π‘₯ 𝑒(𝑑) and π‘₯ π‘œ(𝑑) so we need two equations. One equation is as follows: π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) The other one can be found by substituting for –t rather than t to get: π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(βˆ’π‘‘) + π‘₯ π‘œ(βˆ’π‘‘) Based on the following properties: π‘₯ 𝑒(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) π‘₯ π‘œ(βˆ’π‘‘) = βˆ’π‘₯ π‘œ(𝑑) We can write: π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) - π‘₯ π‘œ(𝑑) So the two equations are: 1. π‘₯(𝑑) = π‘₯ 𝑒(𝑑) + π‘₯ π‘œ(𝑑) 2. π‘₯(βˆ’π‘‘) = π‘₯ 𝑒(𝑑) - π‘₯ π‘œ(𝑑) We can add both of these equations to get rid of π‘₯ π‘œ(𝑑): π‘₯(𝑑) + π‘₯(βˆ’π‘‘) = 2π‘₯ 𝑒(𝑑) So finally: π‘₯ 𝑒(𝑑) = π‘₯(𝑑) + π‘₯(βˆ’π‘‘) 2 Similarly we can find π‘₯ π‘œ(𝑑): π‘₯ π‘œ(𝑑) = π‘₯(𝑑) βˆ’ π‘₯(βˆ’π‘‘) 2 Examples: Find the even and odd components of the following signals: 1. **Example 1.2** p19-36 Note that the first step to make when solving such problems is to prepare π‘₯(βˆ’π‘‘) because both the even and odd components depend on it and also the given π‘₯(𝑑). Periodic & Non-periodic Using Graph
  • 8. A signal is said to be periodic using just its graph if it consists of a single part that repeats itself. Examples: 1. Sine wave 2. Square waves 3. Discrete wave Examples of non-periodic waves: Using Algebra A signal is said to be periodic if it satisfies the following condition: π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) Where T is the fundamental period of the signal π‘₯(𝑑). Thus the fundamental period is required. It is calculated by mapping the existing function to its standard form. Examples: 𝑒 𝑖𝑑 => 𝑒5π‘–πœ‹π‘‘ cos 𝑑 => cos(2πœ‹π‘‘) Examples: 1. 𝑒 𝑖2πœ‹π‘‘/10 2. cos(𝑑 + πœ‹/2) Solutions: 1) For the signal π‘₯(𝑑) to be periodic it must satisfy the following condition: π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) where T is the fundamental period First step is to find the fundamental period of the signal. The angular frequency Ο‰ = 2πœ‹ 𝑇 The angular frequency Ο‰ is the part multiplied at the independent variable t. In our case, π‘₯(𝑑) = 𝑒 𝑖2πœ‹π‘‘/10 , the angular frequency Ο‰ is the part multiplied by t which is 2πœ‹ 10 . So Ο‰ = 2πœ‹ 10 Because Ο‰ = 2πœ‹ 10 = 2πœ‹ 𝑇 so ( 𝑇 =10). As we calculated the fundamental period 𝑇 we can find π‘₯(𝑑 + 𝑇). π‘₯(𝑑 + 𝑇)= π‘₯(𝑑 + 10) = 𝑒 𝑖2πœ‹(𝑑+10)/10 The equation can be simplified as follows: 𝑒 𝑖2πœ‹(𝑑+10)/10 = 𝑒 𝑖2πœ‹π‘‘/10+𝑖2πœ‹10/10 = 𝑒 𝑖2πœ‹π‘‘/10+𝑖2πœ‹ = 𝑒 𝑖2πœ‹π‘‘/10 . 𝑒 𝑖2πœ‹ Because 𝑒 𝑖2πœ‹ = cos(2πœ‹) + 𝑖sin(2πœ‹)
  • 9. And because sin(2πœ‹) = 0 and π‘π‘œπ‘ (2πœ‹) = 1 So 𝑒 𝑖2πœ‹ = 1 So 𝑒 𝑖2πœ‹π‘‘/10 . 𝑒 𝑖2πœ‹ = 𝑒 𝑖2πœ‹π‘‘/10 As we reached that π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) we can conclude that the signal is periodic. Why sin(-t) = sin(t) and cos(-t) = cos(t)? A function has two types of variables: 1. Independent variables 2. Dependent variables Independent variables are the inputs to the functions which not depend on any form of variables to define their values. Dependent variables are the outputs of the functions and they do depend on other variables to determine their values. The variables that they depend on are the independent variables. Suppose that there is a function y = f(x) = x + 5 The independent variable here in f(x) is just the variable x and the dependent variable is y. It is dependent here because y values can only be determined when values of x are known. So depending on x values y values can be determined. When drawing such a function on the Euclidean space the independent variables are drawn on the x-axis and the dependent variables are drawn on the y-axis. The x-axis values change in sign when moving horizontal from right to left and vice versa. The y-axis values change in sign when moving vertical from top to bottom and vice versa. We can conclude that the independent variables change in sign when moving vertically and dependent variables change in sign when moving vertically. For the sine and cosine functions we know the following: sin = π‘‚π‘π‘π‘œπ‘ π‘–π‘‘π‘’ π»π‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’ cos = π΄π‘‘π‘—π‘Žπ‘π‘’π‘›π‘‘ π»π‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’ . For the left part of the next figure, the opposite of ΞΈ is the y-axis and the adjacent of ΞΈ is the x- axis. So sine depends on the opposite and the opposite in our case is the y-axis and the y-axis change sign when moving vertically above and below the horizontal x-axis. Also cosine depends on the adjacent and the adjacent in our case is the x-axis and the x-axis change sign when moving horizontally about the vertical y-axis. Summary: sine -> opposite -> y-axis -> vertically cosine -> adjacent -> x-axis -> horizontally
  • 10. When selecting a positive angle like 60 it will be drawn counter-clockwise. To draw a negative angle it will be drawn clockwise. For a negative angle –θ as in our example it will be drawn counter-clockwise. As it is apparent in the right part of the figure that drawing a negative angle will flip over the x- axis. In our example, flipping over the x-axis will make the x-axis values remain the same as if the angle still positive but it changes the sign of the y-axis. What depends on the y-axis? It is the sine. So the sine will change sign too. But because the x-axis remains the same and the cosine depends on it so no changes will occur to the cosine. At this point we should have known whey sin(-t) = sin(t) and cos(-t) = cos(t).
  • 11. MATLAB Task Write a MATLAB function named check_periodicity that checks whether the following signal is periodic or non-periodic. π‘₯(𝑑) = 𝑒 π‘–π’‚πœ‹π‘‘/𝒃 The function will accept two positive integers as inputs from the user: 1. Coefficient in the enumerator (a in the equation) 2. Coefficient in the denominator (b in the equation) After accepting these inputs the complete equation will be displayed on the screen. Notes: Clarify your code using comments. Write your name and section commented immediately after the function header. Grades will be based on these points: ο‚· Creating a function ο‚· Accepting the right inputs ο‚· Displaying the equation correctly on the screen ο‚· Correct algorithm that can successfully classify the signal ο‚· Code clarification Copy minus.
  • 12. **Section 6** Difference between notation of discrete and continuous signals In signal processing systems, continuous-time signals usually use the symbol 𝑑 for their independent variables and use parentheses but discrete-time signals use the symbol n for their independent variables and use square brackets. Examples of continuous-time signals: 𝑦(𝑑), π‘₯(𝑑) Examples of discrete-time signals: f[n], x[n] HINT In the course reference, there are no problems for just the operations on dependent variables but what is found is a combination of operations on both dependent and independent variables. So we can put some examples for just operations on dependent variables on both continuous- time and discrete-time signals. There is also a hand-created problem for each of these operations. So there are a total of 3 problems for each operation. ο‚· Amplitude scaling: 1. Fig. 1.52 – β„Ž1: 2π‘₯(𝑑) 2. Fig. 1.52 – β„Ž2: 3𝑦(𝑑) 3. Fig. 1.56 – 𝑙1: . 3π‘₯[𝑛] 4. Fig. 1.56 – 𝑙2: 1.5𝑦[𝑛] ο‚· Addition: 1. Fig. 1.52 – β„Ž3: π‘₯(𝑑) + 𝑦(𝑑) 2. Fig. 1.56 – 𝑙3: π‘₯[𝑛] + 𝑦[𝑛] ο‚· Multiplication: 1. Fig. 1.52 – β„Ž4: π‘₯(𝑑)𝑦(𝑑) 2. Fig. 1.56 – 𝑙4: π‘₯[𝑛]𝑦[𝑛] Basic Operations on Signals Before diving into the operations that can be performed over the signals it is good to know the difference between independent and dependent variables. For example, list the independent and dependent variables in the following signal: z = f(x, y) = x + y + a Here x and y are the independent variables because their values not depend on any factor but z is the dependent variable because its value depends on both x and y. Operations on dependent variables Operations performed on dependent variables not affect just a single independent variable but affects all independent variables. So all of these operations just change the dependent variable so they don`t change the dependent variables. The independent variable is graphed over the x-axis and the deponent variable is graphed over the y-axis. So no change in the x-axis values before and after scaling but the change will be in the y-axis values. Amplitude scaling Suppose there is a continuous-time signal π‘₯(𝑑) scaled by a scaling factor c, the resulting signal 𝑦(𝑑) is as follows:
  • 13. 𝑦(𝑑) = 𝑐π‘₯(𝑑) π‘₯(𝑑) the original signal, c scaling factor, 𝑦(𝑑) the scaled signal Scaling for discrete-time signals is performed in a similar manner to continuous-time signals: y[n] = cx[n] Example 6.1: 𝒙(𝒕) = 𝒕 + 2 for -3 ≀ 𝑑 ≀ 3 Perform amplitude scaling for x(t) to get y(t) by a scaling factor 2 and graph the two signals. 𝑦(𝑑) = 𝑐π‘₯(𝑑) For c = 2 𝑦(𝑑) = 2π‘₯(𝑑) 𝑦(𝑑) = 2(𝑑 +2) = 2𝑑 +4 Amplitude scaling: 1. Fig. 1.52 – β„Ž1: 2π‘₯(𝑑) 2. Fig. 1.52 – β„Ž2: 3𝑦(𝑑) 3. Fig. 1.56 – 𝑙1: . 3π‘₯[𝑛] 4. Fig. 1.56 – 𝑙2: 1.5𝑦[𝑛] Addition For the continuous-time signals π‘₯1(𝑑) and π‘₯2(𝑑) the output signal 𝑦(𝑑) is obtained by adding these two signals as follows: 𝑦(𝑑) = π‘₯1(𝑑) + π‘₯2(𝑑) This is similar to adding discrete-time signals: y[n] = x1[n] + x2[n] Example 6.2: π‘₯1(𝑑) = 𝑑 π‘₯2(𝑑) = 𝑑 + 2 Using graph find π’š(𝒕) = π‘₯1(𝑑) + π‘₯2(𝑑) and graph the result signal where -3 ≀ 𝑑 ≀ 3. Addition: 1. Fig. 1.52 – β„Ž3: π‘₯(𝑑) + 𝑦(𝑑) 2. Fig. 1.56 – 𝑙3: π‘₯[𝑛] + 𝑦[𝑛] Multiplication For the continuous-time signals π‘₯1(𝑑) and π‘₯2(𝑑) the output signal 𝑦(𝑑)) is obtained by multiplying these two signals as follows: 𝑦(𝑑) = π‘₯1(𝑑)π‘₯2(𝑑) This is similar to multiplying discrete-time signals: y[n] = x1[n]x2[n] Example 6.3: Multiply the previous two signals and graph the three signals (two inputs + one output). π‘₯1(𝑑) = 𝑑 π‘₯2(𝑑) = 𝑑 + 2
  • 14. Multiplication: 1. Fig. 1.52 – β„Ž4: π‘₯(𝑑)𝑦(𝑑) 2. Fig. 1.56 – 𝑙4: π‘₯[𝑛]𝑦[𝑛] Question: 𝒙(𝒕) = 𝒕 +3 where -5 ≀ 𝑑 ≀ 5 From x(t) how to return a new signal of the form using the basic operations on signals. Explain. 𝑦(𝑑) = { π‘₯(𝑑), βˆ’ 3 ≀ 𝑑 ≀ 3 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ How to return a new signal that is identical to π‘₯(𝑑) for -3 ≀ 𝑑 ≀ 3 and have zero otherwise. Operations on independent variables These operations will of course affect the independent variables and the independent variables and graphed over the x-axis so they affect the x-axis. Time Scaling For the continuous-time signal π‘₯(𝑑), the output signal 𝑦(𝑑) is obtained by scaling the independent variable t by a scaling factor c as follows: 𝑦(𝑑) = π‘₯(π‘Žπ‘‘) If a > 1 then the signal get compressed and if 0 < a < 1 the signal get expanded (stretched). This also holds for discrete-time signals: 𝑦[𝑛] = π‘₯[π‘˜π‘›] Example 6.4: Draw the following continuous-time signal 𝒙(𝒕) based on its inputs and outputs: X -2 -1 0 1 2 Y 0 1 2 1 0 Find the time-scaled version of that signal π’š(𝒕) for the following values for the scaling factor: ο‚· 3 ο‚· .6=3/5 Book Problems: ο‚· 1.56 (a) Question: Why when multiplying by a value > 1 the signal gets compressed and when multiplying by a value < 1 the signal gets expanded? This can be explained using the unit function. The following unit function is defined in the range -1 ≀ 𝑑 ≀ 1:
  • 15. It can be rewritten in a more representative form as follows: π‘₯(𝑑) = { 1, βˆ’ 1 ≀ 𝑑 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ When scaling that function by a scaling factor > 0 like 2 it will be as follows by just replacing each 𝑑 by 2𝑑: π‘₯(2𝑑) = { 1, βˆ’ 1 ≀ 2𝑑 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ But it is more convenient to separate the independent variables in an equation from other factors. Here 2 and the independent variable 𝑑 are in the same side. Divide by 2 to make the equation has this form: π‘₯(2𝑑) = { 1, βˆ’ 1 2 ≀ 𝑑 ≀ 1 2 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ From this equation it is apparent that the range got compressed from -1:1 to - 1 2 : 1 2 . From the last equation it is shown that when multiplying by a scaling factor greater than 1 like 2 the signal got compressed. We can try multiplying by a factor less than 1 like 1 2 . π‘₯(𝑑) = { 1, βˆ’ 1 ≀ 𝑑 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ π‘₯ ( 𝑑 2 ) = { 1, βˆ’ 1 ≀ 𝑑 2 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ π‘₯ ( 𝑑 2 ) = { 1, βˆ’ 2 ≀ 𝑑 ≀ 2 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ From the last equation it is shown that when multiplying by a scaling factor less than 1 like 1 2 the signal gets expanded. So we can have a rule that says if the scaling factor > 1 then the signal get compressed and if the factor is < 1 the signal get expanded. Reflection: Reflection of a continuous-time signal π‘₯(𝑑) is obtained by replacing the time t by –t to generate the reflected version of π‘₯(𝑑) which is 𝑦(𝑑). 𝑦(𝑑) = π‘₯(-t) This is similar to discrete-time signals: 𝑦[𝑛] = π‘₯[-n] Book Problems:
  • 16. 1. Fig. 1.56 – 𝑙5: π‘₯[βˆ’π‘›] 2. Fig. 1.56 – 𝑙6: 𝑦[βˆ’π‘›] Time Shifting: For the continuous-time signal π‘₯(𝑑) the time-shifted version 𝑦(𝑑) is defined as: 𝑦(𝑑) = π‘₯(𝑑 + 𝑑 π‘œ) Where 𝑑 π‘œ is the time shift. If 𝒕 𝒐> 0 then the signal goes to the right and if 𝒕 𝒐< 0 the signal goes to the left. In case of a discrete-time signal π‘₯[𝑛], the time-shifted version is: 𝑦[𝑛] = π‘₯[𝑛 βˆ’ π‘š] Where m is a positive or negative integer. Book Problems: 1. Fig. 1.56 – 𝑙5: π‘₯[𝑛 + 2] 2. Fig. 1.56 – 𝑙6: 𝑦[𝑛 βˆ’ 3] Question: When subtracting a value from the independent variable 𝒕, how the signal go to the right not the left? Suppose that there are two devices (𝐷1 and 𝐷2) generating signals at the same time 𝑑 which is for example 12PM. But we need 𝐷2 to generate its signal after 𝐷1 signal by a delay of 2 minutes. 𝐷1-> S1 -> t -> 12 PM 𝐷2-> S2 -> t -> DELAY -> 𝒕 𝒐 -> 2 min -> 12PM + 2 MIN Finally we have: 𝑑 = 12𝑃𝑀 𝑑 βˆ’ 𝑑 π‘œ = 12𝑃𝑀 𝑑 βˆ’ 2𝑀𝐼𝑁 = 12𝑃𝑀 𝑑 = 12𝑃𝑀 + 2𝑀𝐼𝑁 Thus time for 𝐷2 signal got delayed by 2 minutes when subtracting 2 from the time variable 𝑑. Another better explanation: For the following unit step function: It has the following equation: π‘₯(𝑑) = { 1, βˆ’ 1 ≀ 𝑑 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ When the signal is to be shifted in time by value +2 the new equation will be as follows: π‘₯(𝑑 βˆ’ 2) = { 1, βˆ’ 1 ≀ 𝑑 βˆ’ 2 ≀ 1 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
  • 17. π‘₯(𝑑 βˆ’ 2) = { 1, βˆ’ 1 + 2 ≀ 𝑑 ≀ 1 + 2 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ π‘₯(𝑑 βˆ’ 2) = { 1, 1 ≀ 𝑑 ≀ 3 0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ Thus the signal is shifted to the right when it shifted by a positive value like +2. The signal will also get shifted to the left when it shifted by a negative value like -2. Sheet: 1. Problems solved in the section 2. Book Problems: a. 1.50 b. 1.51 c. 1.52 d. 1.56
  • 18. **Section 7** Elementary Signals in Digital Signal Processing There are some basic signals in the field of digital signal processing that has dominant features. These signals are important by themselves because they reflect some already existing physical signals but also they are useful to: ο‚· Construct signals based on these basic signals ο‚· Process and apply operations over signals based on such basic signals Because signals can be either discrete or continuous we should know: 1. Algebraic equation of continuous and discrete forms of each basic signal 2. Graph of the continuous and discrete forms of the signals Exponential Signal One important factor about such exponential signal is whether it is increasing or decreasing (growing or decaying). Continuous π‘₯(𝑑) = 𝐡𝑒 π‘Žπ‘‘ π‘Ž < 0 π·π‘’π‘π‘Žπ‘¦π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™ π‘Ž > 0 πΊπ‘Ÿπ‘œπ‘€π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™ a=-6, B=5 a=5, B=1 Note that e=2.7 is a number greater than 1. When a number > 1 is raised to a power < 0 it will decrease its value by increasing the magnitude of the power. When the power is > 0 it will increase the resultant value by increasing the power magnitude. In our example e is greater than 1 and when a > 0 the result will be an increasing signal and when a < 0 result will have the form of a decreasing signal. Discrete π‘₯[𝑛] = 𝐡𝑒 π‘Žπ‘› π‘Ž < 0 π·π‘’π‘π‘Žπ‘¦π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™ π‘Ž > 0 πΊπ‘Ÿπ‘œπ‘€π‘–π‘›π‘” 𝐸π‘₯π‘π‘œπ‘›π‘’π‘›π‘‘π‘–π‘Žπ‘™ π‘†π‘–π‘”π‘›π‘Žπ‘™ a=-6, B=5 a=5, B=1
  • 19. The same explanation why x[n] is sometimes increasing and others decreasing is the same as the continuous form. Sinusoidal Signal Continuous π‘₯(𝑑) = π΄π‘π‘œπ‘ (πœ”π‘‘ + 𝛷) π‘₯(𝑑) = 𝐴𝑠𝑖𝑛(πœ”π‘‘ + 𝛷) Where πœ” = 2πœ‹π‘“ Remember that for a signal to be periodic this condition must be valid: π‘₯(𝑑) = π‘₯(𝑑 + 𝑇) Discrete π‘₯[𝑛] = π΄π‘π‘œπ‘ (𝛺𝑛 + 𝛷) π‘₯[𝑛] = 𝐴𝑠𝑖𝑛(𝛺𝑛 + 𝛷) Where 𝛺𝑁 = 2πœ‹π‘š Discrete-Time Signal Periodicity For a discrete-time signal like: π‘₯[𝑛] = π΄π‘π‘œπ‘ (𝛺𝑛 + 𝛷) π‘₯[𝑛] = 𝐴𝑠𝑖𝑛(𝛺𝑛 + 𝛷) Where 𝛺𝑁 = 2πœ‹π‘š It will be periodic only if both m and N are integers. Examples: o 1.16 – p56-39 o 1.17-a, c – p56-39 o 1.18-a, d – p56-39 Exponentially Damped Sinusoidal Unit-Step Signal Continuous
  • 20. Discrete Unit-Impulse Signal Discrete The unit-impulse signal is also called delta and Ξ΄ is called delta. The unit-impulse signal can be calculated from the unit-step signal. 𝛅[ 𝑛] = 𝑒[ 𝑛] βˆ’ 𝑒[ 𝑛 βˆ’ 1] Ramp Signal Continuous Discrete Note: The ramp signal can be calculated based on the unit-step signal. The ramp signal output is always equal to its input. So we can represent the ramp signal with this equation:
  • 21. π‘Ÿ(𝑑) = 𝑑 It will have t this graph: But it is just defined at 𝑑 β‰₯ 0. So how to make the negative part of the ramp signal equal to zero? We apply some of the basic operations to remove the negative part of that result. The simplest is by using multiplication: because 𝑒(𝑑) signal is only defined at the positive part and zero we can multiply it by the signal π‘Ÿ(𝑑) = 𝑑 to return the ramp signal. So it will be as follows for continuous and discrete forms: π‘Ÿ(𝑑) = 𝑑𝑒(𝑑) π‘Ÿ[𝑛] = 𝑛𝑒[𝑛] Basic Operations on the elementary signals Examples: o Show step by step how to create a unit-impulse signal using just unit-step signals. o Show step by step how to create a ramp signal using unit-step signals. o How to create the signal shown in the following graphs using just the elementary signals: A B A B Figure. P1 Solutions: 1. 𝑒(𝑑 + 2) βˆ’ 𝑒(𝑑 βˆ’ 2) + 𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1) 2. 2Ξ΄[ 𝑛] + 4Ξ΄[ 𝑛 + 1] βˆ’ Ξ΄[ 𝑛 + 2] βˆ’ 5Ξ΄[ 𝑛 βˆ’ 1] βˆ’ 2Ξ΄[ 𝑛 βˆ’ 2] Advanced problems:
  • 22. ο‚· How to represent the signal shown in P1-B using just unit-step signals. At first the signal is directly represented using unit-impulse signals. Unit impulse signals can be represented using just the unit-step signals. So solution steps are: 1. Represent the signal using just unit-impulse signals. 2. Replace each unit-impulse signals by its equivalent unit-step signals. Solution is: Ξ΄[ 𝑛] = 𝑒[ 𝑛] βˆ’ 𝑒[𝑛 βˆ’ 1] Ξ΄[ 𝑛 + 1] = 𝑒[ 𝑛 + 1] βˆ’ 𝑒[𝑛] Ξ΄[ 𝑛 + 2] = 𝑒[ 𝑛 + 2] βˆ’ 𝑒[𝑛 + 1] Ξ΄[ 𝑛 βˆ’ 1] = 𝑒[ 𝑛 βˆ’ 1] βˆ’ 𝑒[𝑛 βˆ’ 2] Ξ΄[ 𝑛 βˆ’ 2] = 𝑒[ 𝑛 βˆ’ 2] βˆ’ 𝑒[𝑛 βˆ’ 3] The final equation is: 2( 𝑒[ 𝑛] βˆ’ 𝑒[ 𝑛 βˆ’ 1]) + 4( 𝑒[ 𝑛 + 1] βˆ’ 𝑒[ 𝑛]) βˆ’ ( 𝑒[ 𝑛 + 2] βˆ’ 𝑒[ 𝑛 + 1]) βˆ’ 5( 𝑒[ 𝑛 βˆ’ 1] βˆ’ 𝑒[ 𝑛 βˆ’ 2]) βˆ’ 2( 𝑒[ 𝑛 βˆ’ 2] βˆ’ 𝑒[𝑛 βˆ’ 3]) Book Problems: o 1.54-a, d – p106-89 Some operations will involve just a single type of the above basic signals and others may contain more than one type. Interconnection of operations o Book examples o 1.12 – p70-53 o Book problems o 1.25-p71-54 It is simpler to represent the system as a graph rather than an equation. System operations can be connected using two ways: 1. Parallel: Each operation takes a separate path and implemented by a separate circuit. This is simple but adds more costs to create a separate circuit for each operation. 2. Cascade: The single operation is used multiple times. This saves costs but adds more complexity to reuse the same circuit.
  • 23. MATLAB GUI Task Create a MATLAB GUI application to perform the basic operations on a sine wave as explained in the following diagram. Sheet 3: ο‚· Problems solved in the section ο‚· Book Problems o Discrete-time signal periodicity  Book examples ο‚· Example 1.7-a – p55-38  Book problems ο‚· 1.16 – p56-39 ο‚· 1.17 – p56-39 ο‚· 1.18 ο‚· 1.58 o Elementary signals operations  Book problems ο‚· 1.54 ο‚· 1.55 o Interconnection of operations  Book problems ο‚· 1.63 ο‚· 1.65 ο‚· 1.69 - a
  • 24. **Section 8** The course title is digital signal processing. Before making processing over a digital signal we should know the digital signal itself. Also before studying digital signals we should know signals at all. So we should know signals then digital signals and finally processing over such digital signals. A system performs some operations (processing) over its input signals. Because a system operation (processing) will get applied over an input signal so we should study signals at first. We concentrated on signals and knew different types of signals like sinusoidal and step and also knew their properties like (even/odd, periodic/non-periodic). So we knew these points: ο‚· Signal definition ο‚· Signal digitization ο‚· Signal classification ο‚· Examples of basic signals Next is to know how operations applied to such signals. We started by practicing some simple operations like: ο‚· Addition ο‚· Scaling ο‚· Shifting After that we will concentrated on systems. A system performs multiple operations over the signal so we should know how to perform a group of operations on the same signal. A system with multiple operations will be hard to view using just its equation but it will be easier to look at its graph. We also should study how to graph a system. After that we should know properties of a system. So we will study: ο‚· System definition ο‚· System operations ο‚· Interconnection of operations ο‚· System properties System Properties Linearity For a system to be linear it must exhibit two properties: ο‚· Homogeneity: A system is called homogeneous if scaling the input signal by a factor will also scale the output by the same factor. So it the input is 𝒙(𝒕) and the output is π’š(𝒕) then scaling the input by factor say a to have 𝒂𝒙(𝒕) will generate the output scaled by the same factor to be π’‚π’š(𝒕). So if a sine input signal was having an amplitude of 1 and the output was having an amplitude of 3. Then scaling the input signal by a factor 2 to double the signal will also double the output signal. ο‚· Additivity: A system is called additive if the sum of input signals generates the sum of their output signals. That is if an input signal is 𝒙 𝟏(𝒕) and its output is π’š 𝟏(𝒕) and
  • 25. there is another input 𝒙 𝟐(𝒕) generating output π’š 𝟐(𝒕) then 𝒙 𝟏( 𝒕) + 𝒙 π’š(𝒕) will generate π’š 𝟏( 𝒕) + π’š 𝟐(𝒕). But what is the goal of determining whether a system is linear or not? As we previously discussed that a linear signal changes by a fixed amount. This will help us predict future values of the signal. If a linear signal accepts inputs 1, 2, and 3 to generate outputs 10, 20, and 30 then we can predict future values like input 4 that will generate output 40. We can predict output because the system is linear and changes by a fixed amount each time. To prove that a signal is linear or not we can follow two ways: 1. Algebraic 2. Graph For each signal to be linear or non-linear it must be both homogenous and additive. At first we need to prove that it is homogenous. So for an input 𝒙(𝒕) the output is 𝒙(𝒕) 𝟐 . For that system to be homogenous then scaling the input by a will also scale the output by the same scale. So the input will be 𝒂𝒙(𝒕) and the output is 𝒂 𝟐 𝒙(𝒕) 𝟐 Because the output was not scaled by the same scale as the input the signal is not homogenous. Because at least one condition was not met then the signal is not linear. But we can try to find whether the signal is additive or not. For these two input signals: 𝒙 𝟏(𝒕) => π’š 𝟏(𝒕) 𝟐 𝒙 𝟐(𝒕) => π’š 𝟐(𝒕) 𝟐 The signal will be additive if we 𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕) will generate the sum of their outputs which is π’š 𝟏(𝒕) 𝟐 + π’š 𝟐(𝒕) 𝟐 The output for the input 𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕) is: [𝒙 𝟏(𝒕) + 𝒙 𝟐(𝒕)] 𝟐 𝒙 𝟏(𝒕) 𝟐 + 2𝒙 𝟏(𝒕)𝒙 𝟐(𝒕) + 𝒙 𝟐(𝒕) 𝟐 Because the output is not equal to the sum of the individual outputs we conclude that the signal is not additive. Examples: 8.1.1. 𝑦(t) = x(t) 8.1.2. y(t) = x(t βˆ’ 5) 8.1.3. y(t) = x(t + 2) + x(3 βˆ’ t) 8.1.4. y(t) = x(2t βˆ’ 1) 8.1.5. y(t) = x(t2 ) 8.1.6. y(t) = x2(t) = [x(t)]2 8.1.7. y(t) = 2x(t) + 4 8.1.8. y(t) = 2x(t) + 4t 8.1.9. y(t) = x(t)cos(t) Answers: 8.1.1. Linear, Time invariant, causal, memoryless, stable
  • 26. 8.1.2. Linear, Time invariant, causal, memory, stable 8.1.3. Linear, Time variant, non-causal, memory, stable 8.1.4. Linear, Time variant, non-causal, memory, stable 8.1.5. Linear, Time variant, non-causal, memory, stable 8.1.6. Non-linear, Time invariant, causal, memoryless, stable 8.1.7. Non-linear, Time invariant, causal, memoryless, stable 8.1.8. Non-linear, Time variant, causal, memoryless, stable 8.1.9. Linear, Time variant, causal, memoryless, stable 8.1.7. Solution Homogenous: Multiply x(t) by a factor say a to be ax(t). Then the result will be 2ax(t) + 4 The output y(t) when get multiplied by factor a is a[2x(t) + 4] = 2ax(t) + 4π‘Ž Because scaling the input by a factor a does not scale the output by the same scale then the system is not homogenous. Because at least of the two properties (homogenous & additivity) is not met then the system is non-linear. Additivity: Say there are two signals π‘₯1(t) and π‘₯2(t) generating outputs 𝑦1(t) and 𝑦2(t). The sum of the two input signals which is π‘₯1(t) + π‘₯2(t) will be the new input to the system. So the output will be: 𝑦(π‘₯1(t) + π‘₯2(t)) = 2(π‘₯1(t) + π‘₯2(t)) + 4. Eq1 The sum of the outputs is: 𝑦1(t) = 2π‘₯1(t) + 4 𝑦2(t) = 2π‘₯2(t) + 4 𝑦1(t) + 𝑦2(t) = (2π‘₯1(t) + 4) + (2π‘₯2(t) + 4). Eq2 Because Eq1 and Eq2 are not equal then the system is not additive. Because the system is neither homogenous nor additive then it is non-linear. 8.1.9. Solution Homogenous: Multiply x(t) by a factor say a to be ax(t). Then the result will be ax(t)cos(𝑑). The output y(t) when get multiplied by factor a is a[x(t)cos(𝑑)]. Because scaling the input by a factor a does scale the output by the same scale then the system is homogenous. Additivity: Say there are two signals π‘₯1(t) and π‘₯2(t) generating outputs 𝑦1(t) and 𝑦2(t). The sum of the two input signals which is π‘₯1(t) + π‘₯2(t) will be the new input to the system. So the output will be: 𝑦(π‘₯1(t) + π‘₯2(t)) = (π‘₯1(t) + π‘₯2(t))cos(𝑑). Eq1 The sum of the outputs is: 𝑦1(t) = π‘₯1(t)cos(𝑑) 𝑦2(t) = π‘₯2(t)cos(𝑑) 𝑦1(t) + 𝑦2(t) = π‘₯1(t) cos(𝑑) + π‘₯2(t)cos(𝑑) Eq2
  • 27. Because Eq1 and Eq2 are equal then the system is additive. Because the system is homogenous and additive then it is linear. Time Invariance A system is called time invariant if it does not change over time. But a time variant system does change. So the time invariant system responds identically regardless of when the input was applied. Soa time invariant system does not change by shift (time delay or advance). If the input was applied at 5PM and generated an output y, so if it was delayed to 4PM or moved forward in time to 6PM the results will be the same. If the system was time invariant so we can know the signal behavior in the past and future because it will get the same output whatever the time is. To prove that the system is time invariant make sure that if it generates an output y at time 𝒕 𝟏 then it will generate the same output at different times 𝒕 𝟐. That is if: π’š(𝒕) = 𝒙(𝒕) And the input was shifted by amount d to be 𝒙(𝒕 βˆ’ 𝒅) then the same output will be generated but shifted by the same amount d to be π’š(𝒕 βˆ’ 𝒅). Steps to prove that a system is time invariant or not: 1. Shifting input be replacing each 𝒙(𝒕) by 𝒙(𝒕 βˆ’ 𝒅) to generate an output π’š 𝒅(𝒕). 2. Shifting the output by replacing each 𝒕 by 𝒕 βˆ’ 𝒅 to generate an output π’š(𝒕 βˆ’ 𝒅). 3. If π’š 𝒅(𝒕) = π’š(𝒕 βˆ’ 𝒅) then the system is time invariant. Examples: Which of the following systems are time invariant? Examples: 8.2.1. 𝑦(t) = x(t) 8.2.2. y(t) = x(t βˆ’ 5) 8.2.3. y(t) = x(t + 2) + x(3 βˆ’ t) 8.2.4. y(t) = x(2t βˆ’ 1) 8.2.5. y(t) = x(t2 ) 8.2.6. y(t) = x2(t) = [x(t)]2 8.2.7. y(t) = 2x(t) + 4 8.2.8. y(t) = 2x(t) + 4t 8.2.9. y(t) = x(t)cos(t) Answers: 8.2.1. Linear, Time invariant, causal, memoryless, stable 8.2.2. Linear, Time invariant, causal, memory, stable 8.2.3. Linear, Time variant, non-causal, memory, stable 8.2.4. Linear, Time variant, non-causal, memory, stable 8.2.5. Linear, Time variant, non-causal, memory, stable 8.2.6. Non-linear, Time invariant, causal, memoryless, stable 8.2.7. Non-linear, Time invariant, causal, memoryless, stable
  • 28. 8.2.8. Non-linear, Time variant, causal, memoryless, stable 8.2.9. Linear, Time variant, causal, memoryless, stable Please note: The system will be time invariant if and only if the output generated by applying an input shifted by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will be identical to the same output π’š(𝒕) of the original non-shifted input but shifted by the same amount d to be π’š(𝒕 βˆ’ 𝒅). 8.2.7. a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’. b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) by replacing each 𝒕 by 𝒕 βˆ’ 𝒅 will generates πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’. c. Because shifting the input and the output generates the same signal then the system is time invariant. 8.2.8. a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’π‘‘. b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) will generate an output πŸπ’™(𝒕 βˆ’ 𝒅) + πŸ’(𝒕 βˆ’ 𝒅). c. Because the results generated by shifting both the input and the output are different then the system is time variant. 8.2.9. a. Shifting the input 𝒙(𝒕) by amount d to be 𝒙(𝒕 βˆ’ 𝒅) will generates an output 𝒙(𝒕 βˆ’ 𝒅)𝒄𝒐𝒔(𝒕). b. Shifting the output π’š(𝒕) by amount d to be π’š(𝒕 βˆ’ 𝒅) by replacing each 𝒕 by 𝒕 βˆ’ 𝒅 will generate an output 𝒙(𝒕 βˆ’ 𝒅)𝒄𝒐𝒔(𝒕 βˆ’ 𝒅). c. Because the results generated by shifting both the input and the output are different then the system is time variant. A rule to be used to determine whether a system is time invariant or time variant: In most cases, if there was an independent variable outside of the input signal then the system will be time variant. 8.2.7 is time invariant because the independent variable is inside the input signal 𝒙(𝒕) and no 𝒕 outside of it. 8.2.8 & 8.2.9 are time variant because there is at least one independent variable outside the input signal 𝒙(𝒕). But this rule fails in some cases like 𝒙(πŸ’ βˆ’ 𝒕). In this case the independent variable 𝒕 is inside the input signal but the system is time variant. BIBO Stability There are multiple ways to define that a system is stable: 1. SISO (Single Input Single Output) 2. SIMO (Single Input Multiple Output) 3. MISO (Multiple Input Single Output) 4. MIMO (Multiple Input Multiple Output) 5. BIBO (Bounded Input Bounded Output)
  • 29. A system is said to be BIBO stable if for every set of bounded inputs there is a set of bounded outputs. That is the system is called BIBO (Bounded-Input, Bounded-Output) and BIBO means that if the number of inputs to the system was less than infinity then the number of outputs must be less than infinity. The following conditions must hold: Where 𝑀 𝑦 and 𝑀 π‘₯ are finite positive integers. Why stable system is important? A stable system is better than unstable system because stable systems are predictable and we can know how it can behave compared to unstable systems. So if we applied a set of inputs we can predict the system behavior and know its outputs. This is similar to a programmer that writes code and knows the behavior of the code. For an input x there will be output y compared to another programmer that writes code and doesn`t know how it can behave responding to an input x. If there is another input z, the first programmer is stable and can predict the output responding to the applied input but the second one is unstable because we can`t predict the output. Another example is about a car. A stable car system will increase the car speed if the input was pressing the gas pedal. Unstable car will not just increase the car speed responding to pressing the gas pedal but can make unpredicted behavior like opening the windows, closing the air conditioner, firing the horn. Examples: 8.3.1. 𝑦(t) = x(t) 8.3.2. y(t) = x(t βˆ’ 5) 8.3.3. y(t) = x(t + 2) + x(3 βˆ’ t) 8.3.4. y(t) = x(2t βˆ’ 1) 8.3.5. y(t) = x(t2 ) 8.3.6. y(t) = x2(t) = [x(t)]2 8.3.7. y(t) = 2x(t) + 4 8.3.8. y(t) = 2x(t) + 4t 8.3.9. y(t) = x(t)cos(t) Answers: 8.3.1. Linear, Time invariant, causal, memoryless, stable 8.3.2. Linear, Time invariant, causal, memory, stable 8.3.3. Linear, Time variant, non-causal, memory, stable 8.3.4. Linear, Time variant, non-causal, memory, stable 8.3.5. Linear, Time variant, non-causal, memory, stable 8.3.6. Non-linear, Time invariant, causal, memoryless, stable 8.3.7. Non-linear, Time invariant, causal, memoryless, stable
  • 30. 8.3.8. Non-linear, Time variant, causal, memoryless, stable 8.3.9. Linear, Time variant, causal, memoryless, stable Causality A system is called to be causal if it depends on the present and past values of the input signal but not on the future values. Real-time systems are causal because they depend on the present and the past but not on the future. A system is called non-causal if it depends on at least one value from the future. Examples: 8.4.1. 𝑦(t) = x(t) 8.4.2. y(t) = x(t βˆ’ 5) 8.4.3. y(t) = x(t + 2) + x(3 βˆ’ t) 8.4.4. y(t) = x(2t βˆ’ 1) 8.4.5. y(t) = x(t2 ) 8.4.6. y(t) = x2(t) = [x(t)]2 8.4.7. y(t) = 2x(t) + 4 8.4.8. y(t) = 2x(t) + 4t 8.4.9. y(t) = x(t)cos(t) Answers: 8.4.1. Linear, Time invariant, causal, memoryless, stable 8.4.2. Linear, Time invariant, causal, memory, stable 8.4.3. Linear, Time variant, non-causal, memory, stable 8.4.4. Linear, Time variant, non-causal, memory, stable 8.4.5. Linear, Time variant, non-causal, memory, stable 8.4.6. Non-linear, Time invariant, causal, memoryless, stable 8.4.7. Non-linear, Time invariant, causal, memoryless, stable 8.4.8. Non-linear, Time variant, causal, memoryless, stable 8.4.9. Linear, Time variant, causal, memoryless, stable Memory A system is said to have memory if it depends on past or future values of the input signal. A system is said to be memoryless if it depends only on the present values. Examples: 8.5.1. 𝑦(t) = x(t) 8.5.2. y(t) = x(t βˆ’ 5) 8.5.3. y(t) = x(t + 2) + x(3 βˆ’ t) 8.5.4. y(t) = x(2t βˆ’ 1) 8.5.5. y(t) = x(t2 ) 8.5.6. y(t) = x2(t) = [x(t)]2 8.5.7. y(t) = 2x(t) + 4 8.5.8. y(t) = 2x(t) + 4t 8.5.9. y(t) = x(t)cos(t) Answers:
  • 31. 8.5.1. Linear, Time invariant, causal, memoryless, stable 8.5.2. Linear, Time invariant, causal, memory, stable 8.5.3. Linear, Time variant, non-causal, memory, stable 8.5.4. Linear, Time variant, non-causal, memory, stable 8.5.5. Linear, Time variant, non-causal, memory, stable 8.5.6. Non-linear, Time invariant, causal, memoryless, stable 8.5.7. Non-linear, Time invariant, causal, memoryless, stable 8.5.8. Non-linear, Time variant, causal, memoryless, stable 8.5.9. Linear, Time variant, causal, memoryless, stable Sheet 4: ο‚· Problems solved in the section ο‚· Book problems: o 1.64 – a, b, g, I, k, l o 1.67
  • 32. **Section 10** Summation Rules βˆ‘ 𝛼 π‘˜ 𝑁 π‘˜=π‘š = 𝛼 π‘š βˆ’ 𝛼 𝑁+1 1 βˆ’ 𝛼 βˆ‘ 𝛼 π‘˜ ∞ π‘˜=π‘š = 𝛼 π‘š 1 βˆ’ 𝛼 βˆ‘ 𝑐 𝑁 π‘˜=π‘š = 𝑐(𝑁 βˆ’ π‘š + 1) Convolution Sum 𝑦[ 𝑛] = βˆ‘ π‘₯( π‘˜)β„Ž(𝑛 βˆ’ π‘˜) ∞ βˆ’βˆž Note: For β„Ž[n], n is replaced by 𝑛 βˆ’ π‘˜. So β„Ž[βˆ’n] will be β„Ž[βˆ’(n βˆ’ k)]. Find the discrete-time convolution sum given the input signals and system impulse response in the following examples: Sheet ο‚· 2.33-a (p200-183) ο‚· 2.33-b (p200-183) ο‚· 2.34-a (p201-184) Sheet-2.33-a (p200-183) 𝑦[𝑛] = 𝑒[𝑛 + 3) βˆ— 𝑒[𝑛 βˆ’ 3] π‘₯[𝑛] = 𝑒[𝑛 + 3), β„Ž[𝑛] = 𝑒[𝑛 βˆ’ 3] The first step to solve the convolution problems is to write the correct formula you are to use: 𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜) ∞ βˆ’βˆž 𝑦[𝑛] = βˆ‘ 𝑒(π‘˜ + 3)𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) ∞ βˆ’βˆž
  • 33. At this step, the summation is defined from βˆ’βˆž to ∞. So we have to substitute in 𝑒(π‘˜ + 3)𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) by values like βˆ’βˆž, …, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, … , ∞. Remember that 𝑒(π‘˜ + 3) is only defined at (π‘˜ + 3) > 0 and this requires k to be in this range - 3, -2, -1, 0, 1, 2, 3, … , ∞. 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) is only defined at 𝑛 βˆ’ π‘˜ βˆ’ 3 β‰₯ 0 == π‘˜ ≀ 𝑛 βˆ’ 3 and this requires k to be in this range 3, 4, 5, 6, … , ∞. So why we substitute by values like -5 where nothing of these signals are defined! Ata value like -5 both of these equations gives 0 and we don`t have to add 0 to the summation and loses time. The good solution is what saves time by not adding zeros to the summation. To overcome this problem, the range of the summation should change to just start and end at values defined by the signals. The first part 𝑒(π‘˜ + 3) is just defined at π‘˜ β‰₯ βˆ’3 and the second part 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) is just defined at π‘˜ ≀ 𝑛 βˆ’ 3. The final range at which at least one of these equations are defined is from βˆ’3 to 𝑛 βˆ’ 3. So the summation should change to reflect the new range. AT first change the lower end of the summation to -3 as shown in the next equation: 𝑦[𝑛] = βˆ‘ 1. 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) ∞ βˆ’3 When the range starts at -3 the signal 𝑒(π‘˜ + 3) will always be 1. So we can replace it by the constant 1. Similarly, when the higher end of the summation is replace to be 𝑛 βˆ’ 3 the summation will have tis form: 𝑦[𝑛] = βˆ‘ 1.1 π‘›βˆ’3 βˆ’3 When the range ends at 𝑛 βˆ’ 3 the signal 𝑒(𝑛 βˆ’ π‘˜ βˆ’ 3) will always be 1. So we can replace it by the constant 1. Finally the summation will be as follows: 𝑦[𝑛] = βˆ‘ 1 π‘›βˆ’3 βˆ’3 Using this summation rule: βˆ‘ 𝑐 𝑁 π‘˜=π‘š = 𝑐(𝑁 βˆ’ π‘š + 1) So βˆ‘ 1 π‘›βˆ’3 π‘˜=βˆ’3 = 1. ((𝑛 βˆ’ 3) βˆ’ (βˆ’3) + 1) = 𝑛 + 1 The final equation of the solution is as follows: 𝑦[𝑛] = { 𝑛 + 1, 𝑛 β‰₯ 0 0, 𝑛 < 0 Sheet-2.33-b (p200-183) 𝑦[𝑛] = 3 𝑛 𝑒[βˆ’π‘› + 3] βˆ— 𝑒[𝑛 βˆ’ 2] Solution:
  • 34. 𝑦[𝑛] = βˆ‘ π‘₯[π‘˜]β„Ž[𝑛 βˆ’ π‘˜] ∞ βˆ’βˆž 𝑦[𝑛] = βˆ‘ 3 π‘˜ 𝑒[βˆ’π‘˜ + 3] βˆ— 𝑒[𝑛 βˆ’ π‘˜ βˆ’ 2] ∞ βˆ’βˆž Next is to find the range of the summation. 𝑒[βˆ’π‘˜ + 3] => π‘˜ ≀ 3 𝑒[𝑛 βˆ’ π‘˜ βˆ’ 2] => π‘˜ ≀ 𝑛 βˆ’ 2 The problem is having two upper limits π‘˜ ≀ 3 & π‘˜ ≀ 𝑛 βˆ’ 2. The solution to this ambiguous situation is as follows: For 𝑛 βˆ’ 2 ≀ 3 == 𝑛 ≀ 5, the upper limit is 𝑛 βˆ’ 2 and the summation is: 𝑦[𝑛] = βˆ‘ 3 π‘˜ π‘›βˆ’2 βˆ’βˆž = 3 π‘›βˆ’2+1 1 βˆ’ 3 = 3 π‘›βˆ’1 2 = 3 𝑛 . 3βˆ’1 2 = 3 𝑛 3 2 = 3 𝑛 6 For 𝑛 βˆ’ 2 β‰₯ 4 == 𝑛 β‰₯ 6, the upper limit is 3 and the summation is: 𝑦[𝑛] = βˆ‘ 3 π‘˜ 3 βˆ’βˆž = 33+1 1 βˆ’ 3 = 34 2 = 81 2 Final result is: 𝑦[𝑛] = { 3 𝑛 6 , 𝑛 ≀ 5 81 2 , 𝑛 β‰₯ 6 Sheet-2.34-a (p201-184) 𝑦[n] = x[n] βˆ— 𝑧[𝑛] In this problem, you are given a graph of two signals and want to find the convolution between them. The first step in the solution is to find the algebraic equation that represents each of these graphs. π‘₯[n] = u[n + 5] βˆ’ 𝑒[𝑛 βˆ’ 1] 𝑧[n] = u[n] βˆ’ 𝑒[𝑛 βˆ’ 8] + 𝑒[𝑛 βˆ’ 4] βˆ’ 𝑒[𝑛 βˆ’ 8] = u[n] βˆ’ 2𝑒[𝑛 βˆ’ 8] + 𝑒[𝑛 βˆ’ 4] The impulse response here is β„Ž[n] = 𝑧[𝑛].
  • 35. Then find the convolution between these equations. Because these signals are discrete so we will find the convolution sum using this equation: 𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜) ∞ βˆ’βˆž By substituting in the summation: 𝑦[𝑛] = βˆ‘(u[k + 5] βˆ’ 𝑒[π‘˜ βˆ’ 1]) βˆ— (u[n βˆ’ π‘˜] βˆ’ 2𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] + 𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4]) ∞ βˆ’βˆž The equation can be represented as follows: 𝑦[𝑛] = βˆ‘ u[k + 5]u[n βˆ’ π‘˜] βˆ’ 2 βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] ∞ βˆ’βˆž + βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4] ∞ βˆ’βˆž ∞ βˆ’βˆž βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]u[n βˆ’ π‘˜] ∞ βˆ’βˆž + 2 βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] ∞ βˆ’βˆž βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4] ∞ βˆ’βˆž Next is to determine the range of each summation: 𝑦[𝑛] = βˆ‘ u[k + 5]u[n βˆ’ π‘˜] βˆ’ 2 βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] π‘›βˆ’8 βˆ’5 + βˆ‘ u[k + 5]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4] π‘›βˆ’4 βˆ’5 𝑛 βˆ’5 βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]u[n βˆ’ π‘˜] 𝑛 1 + 2 βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 8] π‘›βˆ’8 1 βˆ’ βˆ‘ 𝑒[π‘˜ βˆ’ 1]𝑒[𝑛 βˆ’ π‘˜ βˆ’ 4] π‘›βˆ’4 1 After that we are not in need of the unit-step signals because in these ranges they will be 1. 𝑦[𝑛] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 π‘›βˆ’8 βˆ’5 + βˆ‘ 1 π‘›βˆ’4 βˆ’5 𝑛 βˆ’5 βˆ’ βˆ‘ 1 𝑛 1 + 2 βˆ‘ 1 π‘›βˆ’8 1 βˆ’ βˆ‘ 1 π‘›βˆ’4 1 But how to find the correct ranges at which the output 𝑦[𝑛] is defined? Follow that procedure: 1. Give a number to each summation for indexing. 2. Find the least value among all the ranges and set it as the beginning of the first range. 3. Next is to substitute by this value in the equation to find 𝑦[𝑣] where 𝑣 is set to that value. Reject all the summations that makes the summation invalid. The summation is valid when it have the higher end value greater than or equal to the lower end value. For example 0 and 0 or -3 and 1. 4. The remaining valid summations will be the summations used to calculate the input value. 5. Increment the last value used by 1 and try to find which summations are used to calculate the new output. 6. Whenever a new valid summation is used to calculate the output value other than the summations used to calculate the previous value stop. This is an indication that we reached the end of the previous range started before and reached also the beginning of
  • 36. a new range. This recent value is the end of the first range and the start value of the new range. 7. Go back to step 3. Applying that procedure to our example: There are 6 summations and will be indexed by numbers from 1 to 6 where each summation takes an index equal to its position in the equation. The least value across all ranges is -5. We need to find 𝑦[βˆ’5]. But make sure that each summation is valid. 𝑦[βˆ’5] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 βˆ’5βˆ’8 βˆ’5 + βˆ‘ 1 βˆ’5βˆ’4 βˆ’5 βˆ’5 βˆ’5 βˆ’ βˆ‘ 1 βˆ’5 1 + 2 βˆ‘ 1 βˆ’5βˆ’8 1 βˆ’ βˆ‘ 1 βˆ’5βˆ’4 1 𝑦[βˆ’5] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 βˆ’13 βˆ’5 + βˆ‘ 1 βˆ’9 βˆ’5 βˆ’5 βˆ’5 βˆ’ βˆ‘ 1 βˆ’5 1 + 2 βˆ‘ 1 βˆ’13 1 βˆ’ βˆ‘ 1 βˆ’9 1 The last 5 summations are invalid because the higher end is lower than the lower end. Finally to calculate 𝑦[βˆ’5] we will just use the first summation with index 1. Next is to increment the last value -5 by 1 to be -4 and substitute to find the summations used to calculate the output. 𝑦[βˆ’4] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 βˆ’12 βˆ’5 + βˆ‘ 1 βˆ’8 βˆ’5 βˆ’4 βˆ’5 βˆ’ βˆ‘ 1 βˆ’4 1 + 2 βˆ‘ 1 βˆ’12 1 βˆ’ βˆ‘ 1 βˆ’8 1 The valid summation is also the first one. Next is to increment the last value -4 by 1 to be -3 and substitute to find the summations used to calculate the output. 𝑦[βˆ’3] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 βˆ’11 βˆ’5 + βˆ‘ 1 βˆ’7 βˆ’5 βˆ’3 βˆ’5 βˆ’ βˆ‘ 1 βˆ’3 1 + 2 βˆ‘ 1 βˆ’11 1 βˆ’ βˆ‘ 1 βˆ’7 1 The valid summation is also the first one. The process will be repeated until the value of n used is -1. When the value used is -1, the output will be as follows: 𝑦[βˆ’1] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 βˆ’9 βˆ’5 + βˆ‘ 1 βˆ’5 βˆ’5 βˆ’1 βˆ’5 βˆ’ βˆ‘ 1 βˆ’1 1 + 2 βˆ‘ 1 βˆ’9 1 βˆ’ βˆ‘ 1 βˆ’5 1 Here there is a new valid summation used to calculate the output value. It is the third one. Then we reached the end of the previous range started before and got the start of a new range. The previous range is βˆ’5 ≀ 𝑛 ≀ βˆ’2 π‘œπ‘Ÿ βˆ’ 5 ≀ 𝑛 < βˆ’1. The next range starts at -1. Increment -1 by 1 to be 0 and substitute to find the output. After following that procedure the final ranges are: βˆ’5 ≀ 𝑛 < βˆ’1, 1 βˆ’1 ≀ 𝑛 < 1, 1, 3 1 ≀ 𝑛 < 3, 1, 3, 4 3 ≀ 𝑛 < 5, 1, 2, 3, 4 5 ≀ 𝑛 < 9, 1, 2, 3, 4, 6
  • 37. 9 ≀ 𝑛, 1, 2, 3, 4, 5, 6 Next is to formulate the output of that equation in a better form: 𝑦[𝑛] = βˆ‘ 1 βˆ’ 2 βˆ‘ 1 π‘›βˆ’8 βˆ’5 + βˆ‘ 1 π‘›βˆ’4 βˆ’5 𝑛 βˆ’5 βˆ’ βˆ‘ 1 𝑛 1 + 2 βˆ‘ 1 π‘›βˆ’8 1 βˆ’ βˆ‘ 1 π‘›βˆ’4 1 𝑦[𝑛] = { 0 𝑛 + 6 2𝑛 + 8 𝑛 + 8 βˆ’π‘› + 12 βˆ’2𝑛 βˆ’ 16 0 , { 𝑛 < 0 βˆ’5 ≀ 𝑛 < βˆ’1 βˆ’1 ≀ 𝑛 < 1 1 ≀ 𝑛 < 3 3 ≀ 𝑛 < 5 5 ≀ 𝑛 < 9 9 ≀ 𝑛 { 𝑆1 𝑆1, 𝑆3 𝑆1, 𝑆3, 𝑆4 𝑆1, 𝑆3, 𝑆4, 𝑆2 𝑆1, 𝑆3, 𝑆4, 𝑆2, 𝑆6 𝐴𝐿𝐿 Lecture Example π‘₯[n] = u[n] βˆ’ 𝑒[𝑛 βˆ’ 10] β„Ž[n] = 1 4 (u[n] βˆ’ 𝑒[𝑛 βˆ’ 4]) Book Problems ο‚· Problem 2.2 –b (p130-113) Problem 2.2 –b (p130-113) 𝑦[𝑛] = ( 1 2 ) 𝑛 𝑒[𝑛 βˆ’ 2] βˆ— u[n] Using this equation: 𝑦[𝑛] = βˆ‘ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜) ∞ βˆ’βˆž 𝑦[𝑛] = βˆ‘( 1 2 ) π‘˜ 𝑒[π‘˜ βˆ’ 2]𝑒[𝑛 βˆ’ π‘˜] ∞ βˆ’βˆž 𝑦[𝑛] = βˆ‘( 1 2 ) π‘˜ 𝑒[π‘˜ βˆ’ 2]𝑒[𝑛 βˆ’ π‘˜] 𝑛 2 𝑦[𝑛] = βˆ‘( 1 2 ) π‘˜ 𝑛 2 Using this summation rule: βˆ‘ 𝛼 π‘˜ 𝑁 π‘˜=π‘š = 𝛼 π‘š βˆ’ 𝛼 𝑁+1 1 βˆ’ 𝛼 𝑦[𝑛] = βˆ‘( 1 2 ) π‘˜ 𝑛 π‘˜=2 = ( 1 2)2 βˆ’ ( 1 2) 𝑛+1 1 βˆ’ 1 2
  • 38. 𝑦[𝑛] = 1 4 βˆ’ ( 1 2)( 1 2) 𝑛 1 2 𝑦[𝑛] = 1 2 βˆ’ ( 1 2 ) 𝑛 The ranges are as follows: 𝑦[𝑛] = { 0, 𝑛 < 2 1 2 βˆ’ ( 1 2 ) 𝑛 , 𝑛 β‰₯ 2 Convolution Integral 𝑦( 𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€ ∞ βˆ’βˆž Note: For β„Ž(𝑑), n is replaced by 𝑑 βˆ’ 𝑇. So β„Ž[βˆ’π‘‘] will be β„Ž[βˆ’(t βˆ’ T)]. Sheet ο‚· 2.39-a (p202-185) ο‚· 2.40-a (p202-185) 2.39-a (p202-185) π’š(𝒕) = (𝒖(𝒕) βˆ’ 𝒖(𝒕 βˆ’ 𝟐)) βˆ— 𝒖(𝒕) Following the convolution integral equation: 𝑦(𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€ ∞ βˆ’βˆž 𝑦(𝑑) = ∫ π‘₯(𝑒(𝑑) βˆ’ 𝑒(𝑑 βˆ’ 2))𝑒(𝑑)dΞ€ ∞ βˆ’βˆž 𝑦(𝑑) = ∫ 𝑒(Ξ€)𝑒(𝑑 βˆ’ Ξ€) βˆ’ ∫ 𝑒(Ξ€ βˆ’ 2)𝑒(𝑑 βˆ’ Ξ€)dΞ€ ∞ βˆ’βˆž ∞ βˆ’βˆž 𝑦(𝑑) = ∫ 𝑒(Ξ€)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ ∫ 𝑒(Ξ€ βˆ’ 2)𝑒(𝑑 βˆ’ Ξ€)dΞ€ 𝑑 2 𝑑 0 𝑦(𝑑) = ∫ 𝑑΀ βˆ’ ∫ dΞ€ 𝑑 2 𝑑 0 Ranges are as follows: 𝑦(𝑑) = { 0 𝑑 2 { 𝑑 < 0 0 ≀ 𝑑 < 2 2 ≀ 𝑑 2.40-a (p202-185) π‘š(𝑑) = π‘₯(𝑑) βˆ— 𝑦(𝑑)
  • 39. π‘₯(𝑑) = 𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1) 𝑦(𝑑) = 𝑒(𝑑) βˆ’ 𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2) + 𝑒(𝑑 βˆ’ 4) 𝑦(𝑑) = 𝑒(𝑑) βˆ’ 2𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2) 𝑦(𝑑) = ∫ π‘₯(Ξ€)h(t βˆ’ Ξ€)dΞ€ ∞ βˆ’βˆž 𝑦(𝑑) = ∫ (𝑒(𝑑 + 1) βˆ’ 𝑒(𝑑 βˆ’ 1))(𝑒(𝑑) βˆ’ 2𝑒(𝑑 βˆ’ 4) + 𝑒(𝑑 βˆ’ 2))dΞ€ ∞ βˆ’βˆž 𝑦(𝑑) = ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ 2 ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€ ∞ βˆ’βˆž ∞ βˆ’βˆž + ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€ ∞ βˆ’βˆž βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ ∞ βˆ’βˆž + 2 ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€ ∞ βˆ’βˆž βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€ ∞ βˆ’βˆž 𝑦(𝑑) = ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ βˆ’ 2 ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€ π‘‘βˆ’4 βˆ’1 𝑑 βˆ’1 + ∫ 𝑒(Ξ€ + 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€ π‘‘βˆ’2 βˆ’1 βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€)dΞ€ 𝑑 1 + 2 ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 4)dΞ€ π‘‘βˆ’4 1 βˆ’ ∫ 𝑒(Ξ€ βˆ’ 1)𝑒(𝑑 βˆ’ Ξ€ βˆ’ 2)dΞ€ π‘‘βˆ’2 1 𝑦(𝑑) = ∫ dΞ€ βˆ’ 2 ∫ dΞ€ π‘‘βˆ’4 βˆ’1 + ∫ dΞ€ π‘‘βˆ’2 βˆ’1 βˆ’ ∫ dΞ€ 𝑑 1 + 2 ∫ dΞ€ π‘‘βˆ’4 1 βˆ’ ∫ dΞ€ π‘‘βˆ’2 1 𝑑 βˆ’1 Ranges are: 𝑦[𝑛] = { 0 𝑑 + 1 𝑑 + 1 10 βˆ’ 2𝑑 0 , { 𝑑 < βˆ’1 βˆ’1 ≀ 𝑑 < 1 1 ≀ 𝑑 < 3 3 ≀ 𝑑 < 5 5 ≀ 𝑑 { 𝐼1 𝐼1, 𝐼3, 𝐼4 𝐼1, 𝐼3, 𝐼4, 𝐼2, 𝐼6 𝐼1, 𝐼3, 𝐼4, 𝐼2, 𝐼6, 𝐼5 Lecture Example Book Problems ο‚· Problem 2.6 (p141-124) Sheet 5 ο‚· Book Problems
  • 40. o Problem 2.2 – a, b, c, d, f (p130-113) o Problem 2.5 (p140-123) o Problem 2.6 (p141-124) ο‚· Sheet Problems o 2.33-a, b, c, e, i o 2.34-all o 2.39-a, b, d, e, f, i, j, k o 2.40-all except (o)
  • 41. ***Section 11*** Unit Impulse as System Impulse Response The effect of using the unit impulse signal over an input signal is to time shift the input signal by the time shift value in the unit impulse. π‘₯(𝑑) βˆ— Ξ΄(t βˆ’ Ο„) = π‘₯(𝑑 βˆ’ Ο„) Example 11.1: Find the convolution integral 𝑦(𝑑) when the input signal is π‘₯(𝑑) = 𝑒(𝑑 βˆ’ 3) and the system impulse response is β„Ž(𝑑) = Ξ΄(t + 2) + Ξ΄(t βˆ’ 4). Solution: 𝑦( 𝑑) = π‘₯( 𝑑) βˆ— β„Ž(𝑑) 𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3) βˆ— [Ξ΄(t + 2) + Ξ΄(t βˆ’ 4)] Using the distributive property of LTI systems: 𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3) βˆ— Ξ΄(t + 2) + u(t) βˆ— Ξ΄(t βˆ’ 4) Using the convolution by unit impulse property: 𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 3 + 2) + u(t βˆ’ 4) 𝑦( 𝑑) = 𝑒( 𝑑 βˆ’ 1) + u(t βˆ’ 4) System Properties Each property of the LTI systems will apply for both discrete-time and continuous-time signals. Distributive π‘₯[𝑛] βˆ— [β„Ž1[𝑛] Β± β„Ž2[𝑛]] = π‘₯[𝑛] βˆ— β„Ž1[𝑛] Β± π‘₯[𝑛] βˆ— β„Ž2[𝑛] π‘₯( 𝑑) βˆ— [β„Ž1( 𝑑) Β± β„Ž2( 𝑑)] = π‘₯( 𝑑) βˆ— β„Ž1( 𝑑) Β± π‘₯( 𝑑) βˆ— β„Ž2(𝑑) Example 11.2: Using the distributive property how to construct the same output illustrated in the following diagram using only one circuit? Just draw the block diagram. Answer: Using the distributive property the system can be designed using a cascaded diagram rather than parallel to have just a single circuit as shown in the following diagram.
  • 42. Associative (π‘₯[ 𝑛] βˆ— β„Ž1[ 𝑛]) βˆ— β„Ž2[ 𝑛] = π‘₯[ 𝑛] βˆ— (β„Ž1[ 𝑛] βˆ— β„Ž2[ 𝑛]) [π‘₯( 𝑑) βˆ— β„Ž1( 𝑑)] βˆ— β„Ž2( 𝑑) = π‘₯[ 𝑛] βˆ— [β„Ž1( 𝑑) βˆ— β„Ž2( 𝑑)] Example 11.3: Using the associative property how to construct the same output illustrated in the following diagram using only one circuit? Just draw the block diagram. Answer: Using the associative property the system can be designed as shown in the following diagram to have just a single circuit. Commutative β„Ž1[ 𝑛] βˆ— β„Ž2[ 𝑛] = β„Ž2[ 𝑛] βˆ— β„Ž1[ 𝑛] β„Ž1(𝑑) βˆ— β„Ž2(𝑑) = β„Ž2(𝑑) βˆ— β„Ž1(𝑑) Example 11.4: Using the following block diagram find the overall system impulse response. Steps to get the impulse response is as follows: 1. Divide each parallel connection into two serial connections
  • 43. 2. If any of these serial connections have a parallel connection divide it until reaching the most inner serial connection. 3. Combine all of the impulse responses in each serial connection to create a single response using convolution. 4. When the individual serial connections in the parallel connection have single response combine the parallel connection serial connections into a single response using summation. 5. Go to the higher parallel connection and repeat steps 1 to 4 until having a single response for the overall system. Solution:
  • 45. Linear Time Invariant (LTI) Systems Properties Memoryless The discrete-time LTI system is memoryless if and only if: β„Ž[π‘˜] = 𝑐δ[k] The continuous-time LTI system is memoryless if and only if: β„Ž(𝑑) = 𝑐δ(t) Causality The discrete-time LTI system is causal if and only if: β„Ž[π‘˜] = 0, π‘˜ < 0 The continuous-time LTI system is causal if and only if: β„Ž(𝑑) = 0, 𝑑 < 0 Stability The discrete-time LTI system is stable if and only if: ο‚₯ο€Όοƒ₯ ο‚₯ ο‚₯ο€­ )(nh The continuous-time LTI system is stable if and only if: ο‚₯ ο‚₯ ο‚₯ο€­ dtth )( Note that an impulse response with this part π‘Ž 𝑏 is stable only if a<1 or b<0. Examples )( 2 1 )( )1()( )(2)( )()( 2 nunh nuenh nunh nunh n n n n οƒ· οƒΈ οƒΆ    ο€½ ο€­ο€½ ο€­ο€½ ο€½  First one is stable only if  < 1. Second one is unstable because 2 > 1. Third one is unstable because e > 1. Fourth one is stable because 1/2 < 1. Lecture Examples:
  • 46. )( 2 1 )( )1()( )(2)( )()( )( )1(2)()( )1()1()( )()( 2 2 nunh nuenh nunh tueth eth tututh tututh nunh n n n at t n οƒ· οƒΈ οƒΆ    ο€½ ο€­ο€½ ο€­ο€½ ο€½ ο€½ ο€­ο€­ο€½  ο€½ ο€­  System Block Diagram Book Problems: ο‚· 2.9-(p149-132) Sheet Problems: ο‚· 2.54-b Section 11 Sheet ο‚· Problems Solved in the Section ο‚· Book Problems o 2.8-(p149-132) o 2.9-(p149-132) o 2.10-(p153-136) ο‚· Book Sheet o 2.46 o 2.47 o 2.48 o 2.49 o 2.57: Just draw the block diagram of the system.
  • 47. ***Section 12*** Introduction to Fourier Analysis We have previously discussed the elementary signals in digital signal processing like unit step, unit impulse, ramp, sinusoidal, and exponential. We also said that the basic functions of these signals are to create new signals or to process an existing signal. In the previous two sections we knew how a signal (DT/CT) can be represented using the unit impulse (delta) signals. In this section we will know how to represent a signal (DT/CT) using the sinusoidal signal. Fourier theory is what represents the signals using only sine signals. When the signal is composed of sine waves we move from the time domain to the frequency domain. The following figure illustrates how useful is the frequency domain. Example to show importance of the frequency domain The following example illustrates the benefits of using the frequency domain. Assume we need to delete the green and red signals from the following signal and leave only the blue signal. How to do that task in both time and frequency domain? It seems impossible to do such task in time domain because there is overlab among all the three signals in time domain. The solution is to use the frequency domain. The previous figure is not what appears on the final result but a one like this appears. We use the previous figure just for simplification.
  • 48. The individual signals are shown as follows:
  • 49. The general solution using the frequency domain is as follows: Investigate the signal and find the different frequencies constituting the signal. Assume there are three signals 𝐴, 𝐡, 𝐢 with the frequencies 𝐹𝐴, 𝐹𝐡, π‘Žπ‘›π‘‘ 𝐹𝐢 respectively and you need the 𝐴 signal and remove the other signals. Because the 𝐴 signal has the πΉπ‘Ž frequency then the solution is to create a filter that passes the πΉπ‘Ž frequency and stop the other two frequencies.
  • 50. For our example, the solution is to know the frequencies of both the red and green signals and cut-off these frequencies to leave only the blue signal. The red signal has a frequency equal to .3Hz and the green signal has a frequency equal to 1Hz. Using a filter we can remove these frequencies to leave only the blue signal. Fourier Representations There are four representations to Fourier each targets a class of signals. The classes are based on whether the signal is DT or CT and whether it is periodic or non-periodic. We will use the FT class. Now there is a fast version of the FT called Fast FT (FFT). Fourier Transform Moving between Time-Domain and Frequency-Domain For a discrete-time signal π‘₯(𝑑), the Fourier transform (FT) of the signal 𝑋(π‘—πœ”) is computed by the following equation: 𝑋(π‘—πœ”) = ∫ π‘₯(𝑑)π‘’βˆ’π‘—πœ”π‘‘ ∞ βˆ’βˆž For a given frequency-domain representation 𝑋(π‘—πœ”), the time-domain version 𝑋(𝑑) is computed by the inverse Fourier transform (IFT) is as follows: π‘₯(𝑑) = 1 2πœ‹ ∫ 𝑋(π‘—πœ”)π‘’βˆ’π‘—πœ”π‘‘ ∞ βˆ’βˆž Note: πœ” = 2πœ‹π‘“ ∫ 𝑒 𝑑 𝑏 π‘Ž 𝑑𝑑 = 𝑒 π‘˜ π‘˜ A special signal to find the FT of is delta. 𝐹𝑇{Ξ΄( 𝑑)} = 1 Useful Rules 𝑒 π‘—πœƒ = cos( πœƒ) + 𝑗𝑠𝑖𝑛(πœƒ) cos(𝑑) = ( 𝑒𝑗𝑑 + π‘’βˆ’π‘—π‘‘) 2 sin(𝑑) = ( 𝑒𝑗𝑑 βˆ’ π‘’βˆ’π‘—π‘‘) 2𝑗
  • 51. cosh(𝑑) = ( 𝑒𝑑 + π‘’βˆ’π‘‘) 2 sinh(𝑑) = ( 𝑒𝑑 βˆ’ π‘’βˆ’π‘‘) 2 Some uses of the Fourier transform in signal processing ο‚· Able to find the frequency components of the signal. ο‚· Convolution for time-domain signals is equivalent to multiplication in frequency- domain: 𝑧(𝑑) = π‘₯(𝑑) βˆ— β„Ž(𝑑) 𝑍(𝑑) = 𝑋(𝑑). 𝐻(𝑑) Using FFT, it is faster to implement the convolution in frequency-domain rather than time-domain. ο‚· Signal Energy. ο‚· Signal Power. Exercises FT ο‚· ο‚· ο‚· 3.14-e – (p262-245) IFT ο‚· 𝑋(π‘—πœ”) = π‘’βˆ’2πœ” 𝑒(πœ”)
  • 52. ***Section 13*** 𝑋( 𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜ ∞ βˆ’βˆž Examples Example 1 Find Z-transform of this signal: π‘₯(𝑛) = { π‘Ž 𝑛 , 𝑛 β‰₯ 0 0, 𝑂. π‘Š π‘₯(𝑛) = π‘Ž 𝑛 𝑒(𝑛) Using this equation to find the Z-transform: 𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ‘ π‘Ž π‘˜ 𝑒(π‘˜)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ‘ π‘Ž π‘˜ π‘§βˆ’π‘˜ ∞ 0 𝑋(𝑧) = βˆ‘(π‘Žπ‘§βˆ’1 ) π‘˜ ∞ 0 𝑋(𝑧) = βˆ‘( π‘Ž 𝑧 ) π‘˜ ∞ 0 Using this equation to find the summation result: βˆ‘ 𝛼 π‘˜ = ∞ π‘˜=π‘š 𝛼 π‘š 1 βˆ’ 𝛼 𝑋(𝑧) = βˆ‘ ( π‘Ž 𝑧 ) π‘˜ = ( π‘Ž 𝑧) 0 1 βˆ’ π‘Ž 𝑧 ∞ 0 = 1 1 βˆ’ π‘Ž 𝑧 By multiplying the nominator and denominator by 𝑧: 𝑋(𝑧) = 𝑧 𝑧 βˆ’ π‘Ž ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it undefined like ∞. From this equation to be defined: 𝑋(𝑧) = βˆ‘( π‘Ž 𝑧 ) π‘˜ ∞ 0 The | π‘Ž 𝑧 | value must be less than 1. So ROC is | π‘Ž 𝑧 | < 1 𝑂𝑅 |𝑧| > |π‘Ž|.
  • 53. Next is to find poles and zeros. Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that makes the nominator equal to 0. Zeros in this case are just 𝑧 = 0. Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 = π‘Ž. Example 2 Find poles and zeros of the following example: 𝑋(𝑧) = 𝑧(𝑧 βˆ’ 1 3) (𝑧 βˆ’ 2)(𝑧 + 1 2) To find zeros: 𝑧 (𝑧 βˆ’ 1 3 ) = 0 𝑧 = 0 𝑂𝑅 (𝑧 βˆ’ 1 3 ) = 0 Zeros are 0 and 1 3 . To find poles: (𝑧 βˆ’ 2) (𝑧 + 1 2 ) = 0 (𝑧 βˆ’ 2) = 0 𝑂𝑅 (𝑧 + 1 2 ) = 0 So poles are 2 and βˆ’ 1 2 . Example 3 Find Z-transform of this signal: π‘₯(𝑛) = βˆ’π‘Ž 𝑛 𝑒(βˆ’π‘› βˆ’ 1) Using this equation to find the Z-transform: 𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘ π‘Ž π‘˜ 𝑒(βˆ’π‘˜ βˆ’ 1)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘ π‘Ž π‘˜ π‘§βˆ’π‘˜ 1 βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘(π‘Žπ‘§βˆ’1 ) π‘˜ 1 βˆ’βˆž = βˆ’ βˆ‘(π‘Žπ‘§βˆ’1 )βˆ’π‘˜ ∞ 1 = βˆ’ βˆ‘(π‘Žβˆ’1 𝑧) π‘˜ ∞ 1 𝑋(𝑧) = βˆ’ βˆ‘( 𝑧 π‘Ž ) π‘˜ ∞ 1 Using this equation to find the summation result:
  • 54. βˆ‘ 𝛼 π‘˜ = ∞ π‘˜=π‘š 𝛼 π‘š 1 βˆ’ 𝛼 𝑋(𝑧) = βˆ’ βˆ‘ ( π‘Ž 𝑧 ) π‘˜ = βˆ’ ( 𝑧 π‘Ž) 1 1 βˆ’ 𝑧 π‘Ž ∞ 0 = βˆ’ 𝑧 π‘Ž 1 βˆ’ 𝑧 π‘Ž By multiplying the nominator and denominator by π‘Ž: 𝑋(𝑧) = βˆ’ 𝑧 π‘Ž βˆ’ 𝑧 = 𝑧 𝑧 βˆ’ π‘Ž ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it undefined like ∞. From this equation to be defined: 𝑋(𝑧) = βˆ’ βˆ‘( 𝑧 π‘Ž ) π‘˜ ∞ 1 The | 𝑧 π‘Ž | value must be less than 1. So ROC is | 𝑧 π‘Ž | < 1 𝑂𝑅 |𝑧| < |π‘Ž|. Next is to find poles and zeros. Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that makes the nominator equal to 0. Zeros in this case are just 𝑧 = 0. Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 = π‘Ž. Example 4 Find Z-transform of each of this signal: π‘₯(𝑛) = βˆ’( 1 3 ) 𝑛 𝑒(βˆ’π‘› βˆ’ 1) Using this equation to find the Z-transform: 𝑋(𝑧) = βˆ‘ π‘₯(π‘˜)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘( 1 3 ) π‘˜ 𝑒(βˆ’π‘˜ βˆ’ 1)π‘§βˆ’π‘˜ ∞ βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘( 1 3 ) π‘˜ π‘§βˆ’π‘˜ 1 βˆ’βˆž 𝑋(𝑧) = βˆ’ βˆ‘( 1 3 π‘§βˆ’1 ) π‘˜ 1 βˆ’βˆž = βˆ’ βˆ‘( 1 3 π‘§βˆ’1 )βˆ’π‘˜ ∞ 1 = βˆ’ βˆ‘(3𝑧) π‘˜ ∞ 1 𝑋(𝑧) = βˆ’ βˆ‘(3𝑧) π‘˜ ∞ 1 Using this equation to find the summation result: βˆ‘ 𝛼 π‘˜ = ∞ π‘˜=π‘š 𝛼 π‘š 1 βˆ’ 𝛼
  • 55. 𝑋(𝑧) = βˆ’ βˆ‘ ( 𝑧 3 ) π‘˜ = βˆ’ (3𝑧)1 1 βˆ’ 𝑧 3 ∞ 0 = βˆ’ 3𝑧 1 βˆ’ 3𝑧 By dividing the nominator and denominator by 3: 𝑋(𝑧) = βˆ’ 𝑧 1 3 βˆ’ 𝑧 = 𝑧 𝑧 βˆ’ 1 3 ROC is the region at which 𝑋(𝑧) is defined. So it is required to avoid values that make it undefined like ∞. From this equation to be defined: 𝑋(𝑧) = βˆ’ βˆ‘(3𝑧) π‘˜ ∞ 1 The |3𝑧| value must be less than 1. So ROC is |3𝑧| < 1 𝑂𝑅 |𝑧| < | 1 3 |. Next is to find poles and zeros. Zeros are the values that makes 𝑋(𝑧) equal to zero. In other words the zeros are the values that makes the nominator equal to 0. Zeros in this case are just 𝑧 = 0. Poles are the values that makes the denominator equal to 0. Poles in this case are just 𝑧 = 1 3 .
  • 56. GUI Task Create a MATLAB GUI application as shown in the following diagram: The application have 8 buttons divided as 2 buttons per group. Each group performs an operation and its opposite. Each button shows both the discrete and continuous versions of the signal except for the Continuous & Discrete group it will show only Continuous or Discrete signal. For example clicking on APeriodic button will show a non-periodic signal in both continuous and discrete forms as shown in the following diagram: