Lecture 1 Signals
Lecture 1 Signals
By
Dr. Muhammad Imran Farid
Lecture 1 Contents
• What is a signal? What is a system?
• Continuous time vs. discrete time (analog vs. digital)
• Signal transformations
• Flipping/time reversal
• Scaling
• Shifting
• Combining transformations; order of operations
• Signal properties
• Even and odd
• Decomposing a signal into even and odd parts (with Matlab demo)
Lecture 1 Contents
• Periodicity
• Special signals
• The delta function
• The unit step function
• The relationship between the delta and step functions
• Decomposing a signal into delta functions
• The sampling property of delta functions
• Complex number review (magnitude, phase, Euler's formula)
• Real sinusoids (amplitude, frequency, phase)
• Real exponential signals
• Complex exponential signals
Digital Signal Processing
Lecture 1 (Signals)
By
Dr. Muhammad Imran Farid
• Digital Signal Processing (DSP) is a discrete version of Signal and Systems
• Basic Operations to a signal
Verify by plugging some numer
shift
flip
to check
% code for even and odd in DSP Lecture 1
clear all;
close all;
clc;
x = rand(1,9) - 0.5;
figure(1), stem(x,'LineWidth',2);
% flip version of x
negx = fliplr(x); % flip left to right
figure(3), stem(-4:4, negx,'LineWidth',2);
% verify whether we get beck original signal from even odd or nor ?
q = evx + odx;
figure(6), stem(-4:4, q,'LineWidth',2);
(signal repeats after certain integer)
Delta function
Unit Step
function
• An another way of seeing the relationship between continuous and discrete delta
function
derivative
Continuous time Continuous Time
step function delta function
Life is easier in
digital world
Polar to
Cartesian
Not periodic (because amplitude change) but a sense of
Real envelope on
periodicity inside the envelope
top of sinusoid
𝛽<0
in practice
n = -10:10;
x = cos(4*pi/5*n);
figure(1), stem(x,'LineWidth',2);
• So we need to be very careful about very particular cosine that are periodic in discrete time world
• We will talk a lot about it in when Insha'Allah we will cover Fourier Series and Fourier Transform