DSP Lect 01
DSP Lect 01
DSP Lect 01
Lecture # 01
Who I am!
• Education
– Undergraduate – PNEC NUST 1998
– MA (International Relations) – KU 2001
– MS (Control Engineering) – PNEC NUST 2006
– PhD (Electrical) – MSU USA 2010
• Naval Appointments
– PNS TAIMUR, PNS SHAMSHER, PNS BADR
– Naval Stores Depot – Technical Division
– Maritime Technologies Complex – South Section
– Pakistan Navy Engineering College
• At PNEC
– Assistant Professor – EPE department
– Group Officer (EPE Labs)
– Few more thing in which you might not be interested
1
9/12/2013
Grading
• Grading Structure:
– Assignments 10%
– Quizzes 10%
– Hourly Exams 20%
– Final exam 30%
– Course Project 30%
Course at a Glance
2
9/12/2013
What is a signal ?
• Signals:
– Information-bearing function
– Generally function of independent variables
– A common convention is to refer to the independent variable as
time, although may in fact not
• Dimensionality:
– Sound: 1-Dimension
– Greyscale image i(x,y) : 2-D
– Video: 3 x 3-D: {r(x,y,t) g(x,y,t) b(x,y,t)}
Sound Signal
Leena Image Movie Clip
Signal processing
• Modify a signal to
– Extract
– Enhance
– Rearrange the information
• Origin in analog electronics e.g. radar
• Examples…
– Noise reduction
– Data compression
– Representation for recognition/classification…
• What is Digital Signal Processing?
– Signal Processing on Computer is called Digital Signal
Processing
3
9/12/2013
Signal Types
Continuous Time Discrete Time
Continuous Time
Discrete Time
4
9/12/2013
Operations on Signals
5
9/12/2013
Signal Sampling
• Discrete time signal often obtained by sampling a
continuous-time signal
Operation on Signals
• Sequences
– Can write a sequence by listing values
• Can we identify
– x[-1] =
– x[0] =
– x[2] =
6
9/12/2013
Operation on Signals
• x[n] may be defined only for certain n:
– N1 ≤ n ≤ N2: Finite length (length = _______)
– N1 ≤ n: Right-sided (This signal is called Causal if N1 ≥ 0)
– n ≤ N2: Left-sided (Anticausal)
• Can always extend with zero-padding
Operation on Signal
• Addition operation
• Multiplication operation
7
9/12/2013
Operation on Signals
• Time-shifting operation
where N is an integer
• If N > 0, it is delaying operation
Operation on Signals
• Combination of basic operations
8
9/12/2013
Operation on Signals
• Certain operations change the effective sampling rate of
sequences by adding or removing samples
– Up-sampling = adding more samples = interpolation
– Down-sampling = discarding samples = decimation
• Down Sampling
– In down-sampling by an integer factor M > 1, every Mth samples of
the input sequence are kept and M - 1 in-between samples are
removed
Operation on Signals
• Up Sampling
– Up-sampling is the converse of downsampling
– L-1 zero values are inserted between each pair of original values.
9
9/12/2013
Complex Numbers
• Complex numbers are a mathematical convenience that
lead to simple expressions.
• A 2nd “imaginary” dimension (j≡√-1) is added to all values.
• Rectangular Form: x = xre + j·xim
where magnitude
and phase θ
• Polar Form
• When adding, real and imaginary parts
• add: (a+jb) + (c+jd) = (a+c) + j(b+d)
• When multiplying,
– magnitudes multiply
– phases add:
Complex Numbers
• Complex Conjugate
• Flips imaginary part / negates phase
– Multiplication
10
9/12/2013
Classes of Sequences
• Finite/infinite (extent in n)
• Real/complex:
• x[n] = xre[n] + j·xim[n]
• wrt to Symmetry
– Conjugate symmetric sequence
– Conjugate antisymmetric:
11
9/12/2013
Basic Sequences
• Shift in time
12
9/12/2013
Exponential sequences
• Exponential sequences= eigenfunctions
• General form: x[n] = A·αn
• If A and α are real:
13
9/12/2013
Complex Exponentials
• Complex Exponentials are given as
Complex Exponentials
• Complex exponential sequence can ‘project down’ onto
real & imag axes to give sinusoidal sequences
• For example
14
9/12/2013
Periodic sequences
• A sequence satisfying is called a
periodic sequence with a period N where N is a positive
integer and k is any integer
• Smallest value of N satisfying is called the
fundamental period
Periodic Exponentials
• Sinusoidal sequence and complex exponential
sequence are periodic sequences of period N
only if , with N & r positive integers
• Smallest value of N satisfying is the fundamental
period of the sequence
• r = 1 => one sinusoid cycle per N samples
• r > 1 => r cycles per N samples
15
9/12/2013
Sampling Sinusoids
• Sampling a sinusoid is ambiguous
Size of Sequence
• Size of the signal is measured by
– Norm
– Norm is defined as
16
9/12/2013
Types of Signals
• Energy Signal
– Energy of a signal is given by
• Power Signal
– Power of a signal is given as
??
Dr Sajjad Zaidi - DSP 33
Assignment
17
9/12/2013
Good Luck
18