Fattah Lecture 01
Fattah Lecture 01
Lecture 01
Shaikh A. Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 1
Signals
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 2
System and Signal Processing
System:
Signal generation is associated to system
(system response to source/stimulus/force/excitation)
A device that performs operation on signals.
(physical device or software realization)
Example: Noise reduction filter, frequency analyzer
Signal Processing:
Manipulate signal to get some processed information
Filtering: Extract/remove certain portion
Compression
Coding
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 3
Various Types of Signal
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 4
Analog Signal Processing
Most real-world signals are analog
– They are continuous in time and amplitude
– Convert to voltage or currents using sensors and
transducers
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
ELEC 442/6601Lecture-01-03 5
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Advantages of Digital Signal Processing
✓ Better Accuracy and tolerances, Less undesired nonlinearities)
✓ Better storage facility and scope of offline computation
✓ Flexibility to modify/reconfigure the design by simply changing
the programs (in analog SP, needs redesign, testing, verification)
✓ Opportunity for repeatability
✓ Less sensitive to electrical noise
✓ Ease of implementation
✓ Lower cost
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
ELEC 442/6601Lecture-01-03 6
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Digital Signal Processing
Represent signals by a sequence of numbers: Sampling or A/D conversions
Perform processing with a digital processor: Digital signal processing
Reconstruct analog signal: Reconstruction or digital-to-analog conversion
digital digital
signal signal
analog analog
signal A/D DSP D/A signal
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 7
DSP Applications
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 8
Analog Signal Processing
Most real-world signals are analog
– They are continuous in time and amplitude
– Convert to voltage or currents using sensors and transducers
Analog signal processing examples
– Analog circuits: Resistors, Capacitors, Inductors, Amplifiers,…
– Audio processing in FM radios
– Video processing in traditional TV sets
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 9
Discrete-Time Signals: Sequences
• Discrete-time signals are represented by sequence of numbers
– The nth number in the sequence is represented with x[n]
• Often times sequences are obtained by sampling of continuous-time signals
– In this case x[n] is value of the analog signal at xa(nT)
– Where T is the sampling period
10
-10
0 20 40 60 80 100 t (ms)
10
-10
0 10 20 30 40 50 n (samples)
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 10
Discrete-Time Signal: Sampling
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 11
Discrete-Time Representation of Sinusoid
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 12
Discrete-Time Representation of Sinusoid
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 13
Relationship CT Signal and DT Signal
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 14
Discrete Time Frequency ( f )
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 15
Discrete Time Frequency ( f )
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 16
Finding f
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 17
Example of Speech Signal: Sampling Frequency
Continuous time signal
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 18
DSP Systems
digital digital
signal signal
analog analog
signal A/D DSP D/A signal
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 19
Discrete-Time Signals: Sequences
• Discrete-time signals are represented by sequence of numbers
– The nth number in the sequence is represented with x[n]
• Often times sequences are obtained by sampling of continuous-time signals
– In this case x[n] is value of the analog signal at xa(nT)
– Where T is the sampling period
10
-10
0 20 40 60 80 100 t (ms)
10
-10
0 10 20 30 40 50 n (samples)
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
ELEC 442/6601Lecture-01-03 20
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Basic Sequences and Operations
• Delaying (Shifting) a sequence
y[n] = x[n − no ]
1.5
0 n 0 0.5
[ n] =
1 n = 0
0
-10 -5 0 5 10
1.5
1
• Unit step sequence 0.5
0 n 0
u[n] = 0
1 n 0
-10 -5 0 5 10
1
0.5
• Exponential sequences
x[n] = A n 0
-10 -5 0 5 Fattah10
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 21
Sinusoidal Sequences
Sinusoidal sequence xn = A cos(o n + )
Complex sinusoid
x[n] = nu (n), 1
A = A e j , = e jo
j o n
j
x[n] = A e e = A e j (o n + )
n n
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 22
Discrete-Time Systems
• Discrete-Time Sequence is a mathematical operation that maps a given
input sequence x[n] into an output sequence y[n]
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 23
Memoryless System
• Memoryless System
– A system is memoryless if the output y[n] at every value of n
depends only on the input x[n] at the same value of n
y[n] = (x[n])
Example 2
y[n] = signx[n]
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 24
Linear Systems
• Linear System: A system is linear if and only if
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 25
Time-Invariant Systems
• Time-Invariant (shift-invariant) Systems
– A time shift at the input causes corresponding time-shift at
output
y[n] = T{x[n]} y[n − no ] = T x[n − no ]
y1 n = (x[n − no ])
2
y[n] = (x[n])
2 Delay the input the output is
yn - no = (x[n − no ])
2
Delay the output gives
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 26
Causal System
• Causality
– A system is causal it’s output is a function of only the current
and previous samples
– Forward Difference
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 27
Stable System
• Stability (in the sense of bounded-input bounded-output
BIBO)
– A system is stable if and only if every bounded input produces
a bounded outputx[n] Bx y[n] By
Example
y[n] = (x[n])
2
Counter example
y[n] = log10 ( x[n] )
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 28
Properties of LTI Systems
• Convolution is commutative
xk hk = xk hn − k = hk xn − k = hk xk
k = − k = −
• Convolution is distributive
h1[n]
x[n] + y[n] x[n] h1[n]+ h2[n] y[n]
h2[n]
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 29
Properties of LTI Systems
• Cascade connection of LTI systems
Fattah
Dr. Shaikh A. Fattah, Prof, Dept. of EEE, BUET Digital Signal Processing-I
Website: https://sites.google.com/site/drshaikhfattah/
Montreal, Quebec, Canada
Lecture-01-03 30