Beruflich Dokumente
Kultur Dokumente
1.0 Introduction
Digital signal Processing (DSP) is an exciting new growth field in electronics.
These devices allow calculations to be performed quickly in order to digitally
emulate the operation of many analog filter circuits. DSP is responsible for many
of the recent advances in high-fidelity audio, high- definition TV, and
telecommunications by providing methods to eliminate random noise, Crosstalk,
and interference without adversely affecting the desired signal.
1.1
A signal is defined as any physical quantity that varies with time, space,
or any other independent variable or variables. Mathematically, a signal is
defined as a function of one or more independent variables.
For example,
S1(t)
=
St
2
S2(t) = 20t
(1.0)
the functions describe two signals, one that varies linearly with the independent
variable t and a second that varies quadratically with t.
A speech signal is a segment of speech which may be represented to a
high degree of accuracy as a sum of several sinusoids of different amplitudes,
frequencies and phases, i.e. as
N
....
(1.1)
Where {Ai(t)}, {2fi(t)}, {i(t)} are the sets of amplitudes, frequencies, and phases
respectively of the sinusoids. This is one way to interpret the information content
or message conveyed by any short time segment of the speech signal is to
measure the amplitudes, frequencies, and phases contained in the short time
segment of the signal. Electrocardiogram (ECG) is another example of natural
signal. This signal provides a doctor with information about the condition of the
patients heart. Hence, speech, electrocardiogram, and electroencephalogram
signal are examples of information-bearing signals that evolve as functions of a
single independent variable namely, time. While image signal is an example of
signals that has a function of two independent variables.
Systems: A system is defined as a physical device that performs an
operation on a signal. For instance, a filter used to reduce the noise and
interference corrupting a desired information- bearing signal is known as a
system. The system performs some operation on the signal.
Signal processing: When we pass signal through a system, as in
filtering, we say that we have processed the signal. In this case, the processing
1
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
of the signal involves filtering the noise and interference from the desired signal.
Normally, the system is characterized by the type of operation that it performs on
the signal. For instance, if the operation is linear, the system is called linear. A
system is linear if it exhibits properties of homogeneity and additively. (called
super position). On the other hand, if the operation on the signal is nonlinear, the
system is said to be nonlinear. This kind of operations is known as signal
processing.
However, in DSP a system covers both physical devices and software
realizations of operations on a signal.
1.2
Analog Signal
Processor
(ASP)
Analog output
Signal
Analog
input
Signal
A/D
Converter
Digital
Signal
Processor
D/A
Converter
Analog
output
Signal
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Applications of DSP
1. Information systems
(a) Speech processing (b) Audio processing (c) Voice mail (d) Facsimile
(FAX) (e) modem (f) cellular telephones (g) Digital & LAN communications
(h) Line equalizers (i) Data encryption etc.
2. Control
(a) Printer control (b) Disk Control (C) Servo control (d) Engine Control
(e) Robots (f) Power system monitor (g) Vibration (modal) control etc.
3. Instrumentation
(a) Waveform generation
(b) Transient analysis
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Is a real-valued signal
j3t
Si(t) = Ae = ACos3t + jA Sin 3t is a complex-Valued Signal
In some applications, Signals are generated by multiple sources or multiple
sensors. Hence, such signals in turn can be represented in vector form if we
consider acceleration due to earthquake, this acceleration is the result of
three basic types of elastic waves. The Primary (P) and the secondary (S)
waves propagate within the body of rock and are longitudinal and transversal
respectively. The third type of elastic wave is called the surface wave,
because it propagates near the ground surface. If S k(t) , K =1,2,3, denotes the
electrical signal from the kth sensor as a function of time, the set of P =3
signals can be represented by a vector S3(t), where
S3(t)
S1(t)
= S (t )
2
S3 (t)
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
I r ( x, y , t )
I(x,y,t) =
I g ( x, y , t )
I ( x, y , t )
b
However, in this course we will deal mainly with single-channel, onedimensional real or complex-valued signals, unless otherwise stated.
Signals can be further classified into four different categories depending
on the characteristics of the time (independent) variable and the values they
take.
2. Continuous- Time Signal
Continuous-time or analog signals e.g. Speech waveforms are defined on a
continuum of points in both the independent and dependent variables. A
signal is said to be continuous if its derivative is defined everywhere, and it is
said
to
be
discontinuous
if
it
is
not.
Mathematically, the average or mean value of an arbitrary continuous time
signal
x(t)
is
given
by
x(t) = lim
1
2T
x (t ) dt
..............................
(1.2)
T
3. Discrete- time signals:- Discrete time Signals are defined only at certain
specific values of time. These time instants need not be equidistant, but in
practice they are usually taken at equally spaced intervals for
computational
convenience
and
mathematical
tractability.
x(tn)
lim
1 N
x (k )
2N 1 k N
. . . (1. )3
N
5
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
The concept of frequency is directly related to the concept of time. Actually, it has
the dimension of inverse time. The nature of the time whether continuous or
discrete will affect the nature of the frequency equally.
Continuous Time Signal:
A Simple harmonic oscillation is mathematically represented by the following
continuous Time sinusoid signal.
xa(t) = Acos(t + ),
-< t<
(1.4)
as shown in fig 1.3, where A is the amplitude of the sinusoid, is the frequency
and is the phase. The subscript a used with x(t) is the analog signal.
Replacing with frequency F, which is in cycles per second or hertz (Hz). Thus,
= 2f
. (1.5)
Substituting equation 1.4 becomes,
xa(t) = A cos (2ft + ),
-< t<
... (1.6)
Fig.1.3.
A j ( Rt Q )
A j ( Rt Q )
e
e
........1.6
+
2
2
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Im
Re
Negative
Clockwise angular motion
Discrete time signals
A discrete time sinusoidal signal is expressed as;
x(n) = A Cos (n + ),
-< n<
Where,
n
=
integer variable, called the sample number
A
=
Amplitude
=
Frequency
0
=
Phase
Instead of , we use the frequency variable f defined by
=
2f
..
Substituting in equ. 1.7., we have,
x(n) =
A Cos (2fn + ), -< n<
(1.7)
(1.8)
(1.9)
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
(1.10)
Thus, the
smallest value
of N for which
equ
(1.10)
is true is called the fundamental period. For a sinusoid with frequency f o to
be periodic, is when, Cos [2 fo (N+n) + ] = Cos (2fon + ). This relation is
true if and only if there exists an integer k such that,
2foN = 2k
or, equivalently,
fo =
k
N
(1.11)
x(n)
=
Sin
where
=
2q/N, Where q and N are integers.
(a) Determine how this table of values can be used to obtain values of
harmonically
related
sinusoids
having
the
same
phase.
(b) Determine how this table can be used to obtain sinusoids of the same
frequency
but
different
phase.
Solution
(a) let xk(n) denote the sinusoidal signal sequence, then,
2n
xk(n)
=
Sin
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
2 ( K n )
=
x(kn)
Thus, Observe that xk(0) = x(0), xK(1) = x(k), xk(2) = x(2K), etc .
So the sinusoidal sequence x k(n) can be obtained from the table of values of
x(n) by taking every kth value of x(n), beginning with x(0). In this manner, we
can generate the values of all harmonically related sinusoids with frequencies
fk = k/N,
for
k
=
0,1,,
N-1.
(b) We can control the phase of the sinusoid with frequency f k = K/N by
taking the first value of the sequence from memory location q = N2, where
q is an integer. Thus, the initial phase controls the starting location with the
table and we wrap around the table each time the index (k n) exceeds N.
xk(n)=
1.5
Sin
Since most of the signals such as speech, biological, Seismic, radar, sonar,
and various communications signals such as audio and video signals, are
analog. So, to process analog signals by digital means, it is first necessary to
convert them into digital form, i.e. to convert them to a sequence of numbers
having finite precision. This process is known as analog-to-digital (A/D)
conversion, and the corresponding devices are called A/D converters
(ADCs).
From the diagram shown in fig. 1.5, A/D has three main parts, namely:
A/D Converter
Digital
xa(t)
Signal
Sampler
x(n)
Quantizer
xq(n)
Coder
Digital
Signal
Quantized Signal
Sampling : This is the conversion of a Continuous- time signal into a discretetime signal obtained by taking samples of the continuous- time signal at
discrete time instants. If xa(nT) x(n), where T is known as the Sampling
interval.
Quantization: Is the conversion of a discrete time continuous-valued signal into
a discrete time, discrete valued (digital) signal. The value of each signal sample
is represented by a value selected from a finite set of possible values. The
difference between the unquantized sample x(n) and the quantized output x q(n) is
10
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
(ii)
When the signal is sampled at the rate F s= 200Hz, the discrete- time
signal
is
100
n 3Cos n
x(n) = 3 cos
(iii)
IF
200
FS
x(n)
75Hz,
the
3
discrete-time
Cos
=
= 3 Cos
signal
100
75
2
n
3
cos
is
4
n
3
2
(2)n
3
n 3Cos
(iv)
g(t) = 2 B t
(1.17)
This is the ideal D/A conversion process using the interpolation functions.
Hence, xa(t) may be expressed as
xa(t) =
n
Fs
X a
g (t
n
)
Fs
n Sin 2 B (t n / 2 B )
xa(t) = X a
(1.19)
2B ( n / 2 B )
2B
n
The Sampling rate Fn=2B = 2Fmax is known as Nyquist rate.
12
(1.18)
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
It is important to note that equ. 1.18 and equ 1.19 used for the reconstruction of
xa(t) from the sequence x(n) is a complicated process, which involves a weighted
sum of the interpolation function g(t) and its time-shifted versions g(t - nT)
for -<n<, where the weighting factors are the samples x(n).
Example 3: Consider the analog signal
xa(t) = 3 Cos 50t + 10 sin 300t - cos 100t.
What is the Nyquist rate for this signal.
Solution:
The freq. present in the signal is
f1 = 25 Hz, F2 = 150Hz. F3 = 50Hz
Therefore,
Fmax = 150Hz, since,
Fs> 2Fmax = 300Hz;
The Nyquist rate is FN = Fmax
FN = 300Hz
Quantization of Continuous Amplitude signals
Since, a digital signal is a sequence of numbers (samples) in which each number
is represented by a finite number of digits (finite precision). Therefore, the
process of converting a discrete-time continuous amplitude signal into a digital
signal by expressing each sample value as a finite (instead of an infinite) number
of digits is known as quantization. The error introduced in representing the
continuous-valued signal by a finite set of discrete value levels is known as
quantization error or quantization noise.
Denoting the quantizer operation on the Samples x(n) as Q[x(n)] and let x q(n)
denote the sequence of quantized samples at the output of the quantizer. Thus,
xq(n) = Q[x(n)]
The quantization error is a sequence eq(n) defined as the difference between the
quantized value and the actual sample value. Thus,
eq(n) = xq(n) - x(n)
(1.20)
However, the quality of the output of the A/D converter is usually
measured by the signal to- quantization noise ratio (SQNR). This provides the
ratio of the signal power to the noise power:
P
2b
x
SQNR = P 2 .2
q
where Px is the average power of the signal xa(t) & is given as:
Px =
1
TP
Tp
( A cos o t ) 2 dt
A2
2
and
Pq is the mean-square error power is given as
Pq=
A2
22b
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
1.6
D/A Converter are used to convert a digital signal to an analog signal. The task of
D/A converter is to interpolate between samples.
The simplest D/A converter are the zero-order hold, which simply holds constant
the value of one sample until the next one is received. Better interpolation can be
achieved by using more sophisticated higher-order (linear) interpolation
techniques. Like the suboptimum interpolation techniques which result in passing
frequencies above the folding frequency. Thus, the D/A conversion usually
involve a suboptimum interpolator followed by a post filter or smoothing filter.
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
D
Fig 2.1 Signal flow graph
Apart from graphical representation of a discrete time signal there are
other alternative representations that are often more convenient to use. These
are:
1. Functional representation e.g.
1 for n 1, 3
x(n ) = 4 for n 2
0 else where
.........................
(2.1)
... 2 1 0 1 2 3 4 5 . . .
. .. 0 0 0 1 4 1 0 0 . . .
3. Sequence representation
There are made up of two:
1. Infinite - duration signal or sequence: if it is with the time or ig in (n
= 0 ) medicated by the symbol is represented as
x(n) = (. 0, 0, 1, 4 , 1, 0, 0, . . .)
(2.2)
For n < 0 can be represented as
x(n) = (0, 1, 4, 1, 0, 0 . . . )
. . . . .
(2, 3)
2. Finite duration sequence: It can be represented as
x(n) = (3, -1, -2, 5, 0, 4, -1 )
.
(2, 3)
This signal consists of seven samples or points (in time), so it is known as
seven- point sequence.
But, a finite duration sequence that satisfies the condition x(n) = 0
for n< 0 can be represented as
x( n) = (0, 1, 4, 1 )
..............
(2, 4)
This is a four- point sequence.
Basic times of discrete Time signals
1. Unit sample sequence (Unit impulse): It is denoted as (n) and is defined
as
15
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
(n)
1 for n 0
=
0 for n 0 . . . .(2.5)
1 for n 0
0 for n 0
. . . (2.6)
n, for n 0
(n)
0, for n 0
..
(2.7)
(2.9)
Alternatively, this signal x(n) can be represented graphically by the amplitude
function
x(n) = A(n) rn
.
(2.10)
and the phase function
<x(n) =(n) n
.
(2.11)
Classification of Discrete- Time Signals
1. Energy signals and power signals: The energy E of a signal x(n) is defined
as
E
x ( n)
(2.12)
The energy of a signal can be finite or infinite. If E is finite (i.e. 0<E< ), then x(n)
is called an energy signal.
However, many signals that posses infinite energy, have a finite average
power. The average power of a discrete time signal x(n) is defined as
N
1
2
x ( n)
P= in
..
(2.13)
2N 1 n N
Obviously, if E is finite, p = 0. While if E is infinite, the average power P may be
either finite or infinite. If p is finite (and nonzero), the signal is called a power
signal.
2. Periodic signals and Aperiodic Signals: A signal x(n) is periodic with period
N(N > 0) if and only if x(n+N) = x(n) for all n
..
(2.14)
16
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
The smallest value of N for which equ. 2.14 holds is called the period
(fundamental). If no value of N that satisfies equ. 2.14., the signal is known as
non periodic or Aperiodic.
Periodic signals are power signals with
2
1 N 1
P=
1x(n) .......................................(2,14)
N n 0
3. Symmetric and non symmetric signals: A real- valued signal x(n) is called
Symmetric (even) if
x(-n) = x(n)
.
(2.15)
While, a signal x(n) is non-symmetric (odd) if
x(-n) = -x(n)
(2.16)
Manipulations of Discrete Time signals
Transformation of the in dependent. Variable (time).
A signal x(n) can be shifted in time by replacing the independent variables n by nk, where k is an integer. If k is a positive integer, the time shift results in the
delay of the signal by k units of time
But, if x is a negative integer, the time shift results in an advance of the
signal by (k) units in time,
Example 1: A signal x(n) is graphically shown in fig. 2.2a. Show a graphical
representation of the signals x(n-3) and x (n+2).
Solution:
The signal x (n-3) is obtained by delaying x(n) by three units in time and the
result is shown in fig 2.26. While, the signal x(n+2) is obtained by advancing x(n)
by two units in time and the result is in fig. 2,2,c. Mote that delay corresponds to
shifting a signal to the right, whereas advance in plies shifting the signal to the
left on the time axis.
X(n)
4
(a)
-5
-4 -3 -2 -1 0 1
17
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
x(n - 3)
-2
-1
x(n+ 2)
4
-7
n
-6 -5 -4 -3
-2 -1 0 1
Discrete Time
System
y(n)
Output signal (Response)
18
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
defamed rule, to produce another discrete time signal called the olp signal
(Response) of the system. This implies that the input signal x(n) is transformed
by the system to yield an output signal y(n). i.e.
y(n) T[x(n)]
..
(2.17)
Where
T = transformation (or an operator )
Alternatively,
x(n)
T
y(n)
(2.18)
Example: Determine the response of the following systems to the input signal.
x(n) =
3 n 3
0,
otherwise
n,
(a)
(b)
(c)
(d)
(e)
y(n) = x (n)
y (n) = x (n -1)
y (n) = x(n +1)
y (n) = 1/3 [x(n+1)+x(n)+x(n-1)]
y (n) = max {x(n+1), x(n), x(n-1)}
(f)
y (n) =
Solution
The sample values of the input signal is
x(n) = { . . . , 0, 3, 2, 1, 0, 1, 2, 3, 0, . . . }
Then, we determine the o/p of each system;
(a) Output of the system = input to the system: Hence, the system is identity
system.
(b) Delays the input by one sample. Its output is given by
x(n) = {. . . , 0 ,3, 2, 1, 0, 1, 2, 3, 0, . . .}
(c)
Here, the system advances the input one sample into the future.
x(n) = {. . . , 0, 3, 2, 1, 0, 1, 2, 3, 0, . . . }
(d)
The o/p of this system at anytime is the mean value of the present, the
immediate past, and the immediate past, and the immediate future samples e.g.
the o/p at time n = o is
y(o) =
1
x 1 x(0) x(1) 1 1 0 1 2
3
3
3
Repeating this computation for every value of n, we obtain the output signal as
y(n) = {.. 0, 1, 5/3, 2, 1, 2/3, 1, 2, 5/3, 1, 0, ,,,,,,,,,}
(e)
This system selects as its output at time n the maximum value of the three
input samples x(n-1), x(n), and x(n+1). Thus, the response of the system is
19
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
y(n) = {0, 3, 3, 3, 2, 1, 2, 3, 3, 3, 0, ,, ,, ,, }
(f)
This system is basically an accumulator that computes the running sum of
all the past values upto present time. Mathematically,
y(n)
=
n
n 1
x ( k ) X ( k ) X ( n)
.....................
2.19
y ( n 1) x (n)
y(n) = ax(n)
4. Unit delay element: It is a special system that singly delays the signal
passing through it by one sample. It has memory. z-1 is used to denote
x2(n)
the unit of delay
x(n)
Z-1
y(n) = (n-1)
y(n)=x(n+1)
20
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Example 1: Sketch the block diagram representation of the discrete time system
described by the input - output relation.
y(n) = (n-1)+ x(n)+ x(n-1)
Solution:
y(n) = 1/4y(n-1) + x(n) + x(n-1)
Rearranging, we have,
y(n) = (n-1) + [x(n) + x(n-1)]
The block diagram of the system we becomes
Z-1
0.5
x(n)
y(n)
+
Z-1
0.25
(2.21)
y(n) =
x(n k )
(Finite memory)
..
(2.22)
(Infinite memory)
(2.33)
k 0
y(n) =
x(n k )
k 0
21
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
x(n - k) T y(n - k)
..
(2.24)
for every input signal x(n) and every time shift k.
If the output y(n,k) = y(n - k), for all possible values of k, the system is time
invariant, while if the output y(n,k) y(n - k), even for one value of k, it is time
variant system.
3. Linear and nonlinear systems: A linear systems is one that satisfies the
superposition principle. The superposition principle states that the
response of the system to a weighted sun of signal is equal to the
corresponding weighted sum of the responses of the system to each of
the individual input signals.
Hence, a system is linear if and only if T[a,x,(n)] + [a 2x2(n)] = [a1T[x1(n)] +
[a2T[x(n)]
for any arbitrary input sequences x1(n) and x2(n), and any arbitrary
constants a1 and a2.
If a2 = 0, then equation 2.25 reduces to
T[a1x1(n)] = a1T[x1(n)] = a1y1(n)
(2.26)
where y1(n) = T[x1(n)]
Equ. 2.26 is the multiplicative or scaling property of a linear system. But, if
a1 = a2 = 1 in equ. 2.25,
Then, T[x1(n) + x2(n)] = T[x1(n)] + T[x1(n)] = y1(n) + y2(n) .
(2.27)
This kind of relationship is the additive property of a linear system.
From equ 2.26, if a, = 0, then y(n) =0. This implies a relaxed situation. So,
linear system with zero input produces a zero output. But, if a system
produces a nonzero output with a 0 input, the system is a nonlinear
system.
4. Causal and Non-causal systems: A system is said to be causal if the
output of the system at anytime n [i.e., y(n)] depends only on present and
past inputs [i.e. x(n)], x(n-1),x(n-2)..], but does not depend on future
inputs [i.e. x(n+1), x(n+2)..]. Mathematically, the output of a causal
system is given as
y(n) = F[x(n),x(n-1),x(n-2),..]
..
(2.28)
where F [ .] is an arbitrary function.
While, a system which does not satisfy this definition is known as non
causal. The system depends both on present, past and future inputs.
5. Stable and unstable systems: The theorem states that an arbitrary
relaxed system is said to be bounded input- bounded. Output (BlBO)
stable if and only if every bounded input produces a bounded output.
While, a if abounded input sequence, x(n) produces an unbounded
(infinite) is known as an unstable systems.
2.3.
22
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
are constant parameters and are independent of x(n) and y(n). Equ.
2.29 is known as difference equation.
b. In this method, firstly decompose the input signal into, a sum of
elementary signals. Then, using the linearity property of the system,
the responses of the system to the elementary signals are added to
obtain the total response of the system to the given input signal.
Response of LTI Systems to Arbitrary Inputs: (The Convolution sum)
The convolution sum provides us with a means for computing the response of a
relaxed, LTI system of any arbitrary input signal x(n).
Let the response y(n,k) of the system to the input unit sample sequence at n=k
by the special symbol h(n,k), -<k< . i.e.
y(n,k) h (n,k)= T[85-k)](2.30)
where n is the time index and k is a parameter showing the location of the input
impulse. If the impulse at the input is scaled by an amount C kx(k), the response
of the system becomes
Ckh (n,k)= x(k) h(n,k).(2.31)
But, if the input is the arbitrary signal x(n)i.e
expressed as a sum of weighted impulses, i.e.
X(n)=
Them the response of the system to x(n) is the corresponding sum of weighted
outputs, i.e.
y(n)= T[x(n)]= T
=
=
x(k )
6 (n-k) .(2.33)
x (k )T [6 (n-k)(2.34)
x ( k ) h ( n, k )
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
As shown in equ. , the response y(n) of the LTI system as a function of theinput
signal x(n) and the unit sample (impulse) response h(n) is called a convolution
sum. In constr at, the general characteristic of the output of a time variant,
hinear system requires an infinite number of unit sample response functions,
h(n,k), one for each possible delay.
Suppose, we wish to compute the output of the system at sometime nistnt,
say n = no,
Applying the above equ, the response at n = no be comes
x ( k )h( n
y ( no )
k)
the process of computing the convolution between x(k) and h(k) involves the
following form steps
1. Folding: fold h(k) arbout k = 0 to obtain h(-k).
2. Shifting: Shift h(-k) by n 0 to the right (left) it n 0 to the right (left) if n 0 is positive
(negative , to obtain h(n0-k).
3. Multiplication:- multiply x(k) by h (n 0 k) to obtain the product sequence
Vno(K) = x(k) h (n0-k).
4. Summation: sum all the values of the product sequence V no(k) to obtain the
value of the output at time n = n0
Assignment 1:
The imputes response of a him ear time variants system is
h(n) = (1, 2, 1, -1 )
Determine the response of the system to the niput signal (Hint use either
graphically or mathematically method )
x(n) = x (n) * h (n)
Where the asterisk (*) is the convolution operation. and the impulse response
h(n) is folded and shifted.
The input to the system is x(n). so,
y(n) =h (n) x(n)
h( k )
x ( n k )............................( 2,28)
in this case, it is the input signal that is folded and it results from an inter change
of the roles of x(n) and h(n). the above two equs. is known as commutative law;
x(n) * h(n) = h(n) * x(n)
Associative lams:
[x(n) * h1(n)] * h2 (n) = x(n) * [h1(n)*h2(n)]
x(n)
h1(n)
h2(n)
y(n)
x(n)
h2(n)=
h1(n)*h2(n)
y(n)
(a)
x(n)
h1(n)
h2(n)
(b)
y(n)
24
x(n)
h2(n)
h1(n)
y(n)
Elective 1 (EE 504) Communication Engineering (Digital Signal Processing) By Engr. Elemuwa E. P.
Distributive law:
x(n)* [h1(n)+h2(n)]=x(n)* h1(n)+x(n)*h2(n)
x(n)
h1(n)
x(n)
+
h2(n)
25
h(n)=
h1(n)+h2(n)
y(n)