SlideShare a Scribd company logo
1 of 53
Download to read offline
MATLAB(01)
Discrete-Time Signals and
Systems
Assist. Prof. Amr E. Mohamed
Discrete-Time Signals
2
Discrete-Time Signals
 A discrete signal will be denoted by x(n), in which the variable n is integer-
valued and represents discrete instances in time (Sequence of Number).
π‘₯(𝑛) = { π‘₯(𝑛) } = { . . . , π‘₯( βˆ’ 1), π‘₯(0), π‘₯(1), . . . }
 where the up-arrow indicates the sample at n = 0.
 In MATLAB we can represent a finite-duration sequence by a row vector
of appropriate values.
 For example, a sequence x(n) = { 2, 1, βˆ’ 1, 0, 1, 4, 3, 7 } can be
represented in MATLAB by
 An arbitrary infinite-duration sequence cannot be represented in
MATLAB due to the finite memory limitations.
3
↑
↑
Types Of Sequences
1. Unit sample sequence:
 For example, to implement
 over the 𝑛1 ≀ 𝑛0 ≀ 𝑛2 interval, we will use the following MATLAB function.
4
Types Of Sequences (Cont.)
2. Unit step sequence:
 For example, to implement
 over the 𝑛1 ≀ 𝑛0 ≀ 𝑛2 interval, we will use the following MATLAB function.
5
Types Of Sequences (Cont.)
3. Real-valued exponential sequence:
 For example, to generate π‘₯ 𝑛 = 0.9 𝑛 , 0 ≀ 𝑛 ≀ 10, we will need the
following MATLAB script:
6
Types Of Sequences (Cont.)
4. Complex-valued exponential sequence:
 where Οƒ produces an attenuation (if <0) or amplification (if >0) and Ο‰ 0 is
the frequency in radians.
 For example, to generate π‘₯ 𝑛 = 𝑒(2 + 𝑗3)𝑛 , 0 ≀ 𝑛 ≀ 10, we will need
the following MATLAB script:
7
Types Of Sequences (Cont.)
5. Sinusoidal sequence:
 where A is an amplitude and ΞΈ0 is the phase in radians.
 For example, to generate π‘₯ 𝑛 = 3 π‘π‘œπ‘  0.1πœ‹π‘› +
πœ‹
3
+ 2 𝑠𝑖𝑛( 0.5πœ‹π‘› ),
0 ≀ 𝑛 ≀ 10, we will need the following MATLAB script:
8
Types Of Sequences (Cont.)
6. Random sequences:
 Many practical sequences cannot be described by mathematical
expressions like those above. These sequences are called random (or
stochastic) sequences and are characterized by parameters of the
associated probability density functions.
 In MATLAB two types of (pseudo-) random sequences are available.
 The rand(1,N) generates a length N random sequence whose elements are
uniformly distributed between [0, 1].
 The randn(1,N) generates a length N Gaussian random sequence with mean
0 and variance 1.
 Other random sequences can be generated using transformations of the
above functions.
9
Types Of Sequences (Cont.)
7. Periodic sequence:
 A sequence x(n) is periodic if x(n) = x(n + N), βˆ€n. The smallest integer N
that satisfies this relation is called the fundamental period. We will use
˜x(n) to denote a periodic sequence.
 To generate P periods of π‘₯(𝑛) from one period { π‘₯(𝑛), 0 ≀ 𝑛 ≀ 𝑁 βˆ’ 1} ,we
can copy π‘₯(𝑛) 𝑃 times:
 But an elegant approach is to use MATLAB’s powerful indexing
capabilities.
10
Operations On Sequences
1. Signal addition:
 This is a sample-by-sample addition given by
 The following function, called the π‘ π‘–π‘”π‘Žπ‘‘π‘‘ function, demonstrates these
operations.
11
Operations On Sequences (Cont.)
2. Signal multiplication:
 This is a sample-by-sample (or β€œdot”) multiplication) given by This is a sample-by-
sample addition given by
 The following function, called the π‘ π‘–π‘”π‘šπ‘’π‘™π‘‘ function, demonstrates these operations.
12
Operations On Sequences (Cont.)
3. Scaling:
 In this operation each sample is multiplied by a scalar Ξ±.
𝛼 { π‘₯(𝑛) } = { 𝛼π‘₯(𝑛) }
 An arithmetic operator (*) is used to implement the scaling operation in
MATLAB.
13
Operations On Sequences (Cont.)
4. Shifting:
 In this operation, each sample of x(n) is shifted by an amount k to obtain a
shifted sequence y(n).
𝑦(𝑛) = { π‘₯(𝑛 βˆ’ π‘˜) }
 If we let π‘š = 𝑛 βˆ’ π‘˜, then 𝑛 = π‘š + π‘˜ and the above operation is given by
𝑦(π‘š + π‘˜) = { π‘₯ (π‘š) }
 This is shown in the function π‘ π‘–π‘”π‘ β„Žπ‘–π‘“π‘‘.
14
Operations On Sequences (Cont.)
5. Folding:
 In this operation each sample of x(n) is flipped around n = 0 to obtain a
folded sequence y(n).
𝑦(𝑛) = { π‘₯( βˆ’ 𝑛) }
 In MATLAB this operation is implemented by π‘“π‘™π‘–π‘π‘™π‘Ÿ(π‘₯) function for
sample values and by βˆ’π‘“π‘™π‘–π‘π‘™π‘Ÿ(𝑛) function for sample positions as shown
in the π‘ π‘–π‘”π‘“π‘œπ‘™π‘‘ function.
15
Operations On Sequences (Cont.)
6. Sample summation:
 This operation differs from signal addition operation. It adds all sample
values of π‘₯(𝑛) between 𝑛1 and 𝑛2.
 It is implemented by the π‘ π‘’π‘š(π‘₯(𝑛1: 𝑛2)) function.
16
Operations On Sequences (Cont.)
7. Sample products:
 This operation also differs from signal multiplication operation. It
multiplies all sample values of π‘₯(𝑛) between 𝑛1 and 𝑛2.This operation
differs from signal addition operation. It adds all sample values of π‘₯(𝑛)
between 𝑛1 and 𝑛2.
 It is implemented by the π‘π‘Ÿπ‘œπ‘‘(π‘₯(𝑛1: 𝑛2)) function.
17
Operations On Sequences (Cont.)
8. Signal energy:
 The energy of a sequence x(n) is given by
 where superscript (βˆ—) denotes the operation of complex conjugation.
The energy of a finite-duration sequence π‘₯(𝑛) can be computed in
MATLAB using
18
OPERATIONS ON SEQUENCES (Cont.)
9. Signal power:
 The average power of a periodic sequence π‘₯(𝑛) with fundamental period 𝑁
is given by
19
EXAMPLE #1
20
EXAMPLE #1 - Solution
21
EXAMPLE #1 - Solution
22
EXAMPLE #1 - Solution
23
EXAMPLE #1 - Solution
24
Note that over the given interval, the sequence ˜x (n) has four periods.
EXAMPLE #2
25
EXAMPLE #2 - Solution
26
EXAMPLE #3
27
EXAMPLE #3 - Solution
28
Even and odd synthesis
 A real-valued sequence x e (n) is called even (symmetric) if
π‘₯ 𝑒(βˆ’π‘›) = π‘₯ 𝑒(𝑛)
 Similarly, a real-valued sequence x o (n) is called odd (antisymmetric) if
π‘₯ π‘œ(βˆ’π‘›) = βˆ’π‘₯ π‘œ(𝑛)
 Then any arbitrary real-valued sequence x(n) can be decomposed into
its even and odd components
π‘₯(𝑛) = π‘₯ 𝑒(𝑛) + π‘₯ 𝑒(𝑛)
 where the even and odd parts are given by
π‘₯ 𝑒 𝑛 =
1
2
π‘₯ 𝑛 + π‘₯ βˆ’π‘› π‘Žπ‘›π‘‘ π‘₯ π‘œ(𝑛) =
1
2
[π‘₯(𝑛) βˆ’ π‘₯(βˆ’π‘›)]
29
Even and odd synthesis
 Using MATLAB operations discussed so far, we can obtain the following
π‘’π‘£π‘’π‘›π‘œπ‘‘π‘‘ function.
30
EXAMPLE #4 with Solution
31
Discrete Time Systems
32
Discrete Time Systems
 A discrete-time system (or discrete system for short) is described as an
operator T[ Β· ] that takes a sequence x(n) (called excitation) and
transforms it into another sequence y(n) (called response). That is,
𝑦(𝑛) = 𝑇[π‘₯(𝑛)]
1. LINEAR SYSTEMS:
 A discrete system T[ Β· ] is a linear operator L[ Β· ] if and only if L[ Β· ]
satisfies the principle of superposition, namely,
𝐿 π‘Ž1 π‘₯1 𝑛 + π‘Ž2 π‘₯2 𝑛 = π‘Ž1 𝐿 π‘₯1 𝑛 + π‘Ž2 𝐿[π‘₯2(𝑛)], βˆ€π‘Ž1, π‘Ž2, π‘₯1 𝑛 , π‘₯1 𝑛
33
Discrete Time Systems (Cont.)
2. Linear time-invariant (LTI) system:
 A linear system in which an input-output pair, x(n) and y(n), is invariant to a
shift k in time is called a linear time-invariant system i.e.,
𝑦(𝑛) = 𝐿[π‘₯(𝑛)] β‡’ 𝐿[π‘₯(𝑛 βˆ’ π‘˜)] = 𝑦(𝑛 βˆ’ π‘˜)
 For an LTI system the L[·] and the shifting operators are reversible as shown here.
 Let x(n) and y(n) be the input-output pair of an LTI system. Then the output is
given by the convolution:
𝑦 𝑛 = 𝐿𝑇𝐼 π‘₯ 𝑛 = π‘₯ 𝑛 βˆ— β„Ž(𝑛) =
π‘˜=βˆ’βˆž
∞
π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜)
34
Discrete Time Systems (Cont.)
3. Stability:
 The primary reason for considering stability is to avoid building harmful
systems or to avoid burnout or saturation in the system operation.
 A system is said to be bounded-input bounded-output (BIBO) stable if
every bounded input produces a bounded output.
| π‘₯(𝑛) | < ∞ β‡’ | 𝑦(𝑛) | < ∞ , βˆ€ π‘₯, 𝑦
 An LTI system is BIBO stable if and only if its impulse response is
absolutely summable.
𝐡𝐼𝐡𝑂 π‘†π‘‘π‘Žπ‘π‘–π‘™π‘–π‘‘π‘¦ ⇐⇒
βˆ’βˆž
∞
| β„Ž(𝑛) | < ∞
35
Discrete Time Systems (Cont.)
4. Causality:
 This important concept is necessary to make sure that systems can be
built. A system is said to be causal if the output at index 𝑛0 depends only
on the input up to and including the index 𝑛0; that is, the output does not
depend on the future values of the input.
 An LTI system is causal if and only if the impulse response
β„Ž(𝑛) = 0, 𝑛 < 0
36
Convolution
 MATLAB does provide a built-in function called conv that computes the
convolution between two finite-duration sequences. The conv function
assumes that the two sequences begin at n = 0 and is invoked by
 Example #5:
 Let the rectangular pulse π‘₯(𝑛) = 𝑒(𝑛) βˆ’ 𝑒(𝑛 βˆ’ 10) of Example 2.4 be an
input to an LTI system with impulse response β„Ž(𝑛) = (0.9) 𝑛 𝑒(𝑛) .
Determine the output y(n).
 Solution:
37
Convolution (Cont.)
 A simple modification of the conv function, called π‘π‘œπ‘›π‘£_π‘š , which
performs the convolution of arbitrary support sequences can now be
designed.
38
Example #6
 Given the following two sequences
π‘₯ 𝑛 = 3, 11, 7, 0, βˆ’ 1, 4, 2 , βˆ’ 3 ≀ 𝑛 ≀ 3;
β„Ž(𝑛) = [2, 3, 0, βˆ’ 5, 2, 1], βˆ’ 1 ≀ 𝑛 ≀ 4
determine the convolution y(n) = x(n) βˆ— h(n).
 Solution:
39
↑
↑
Sequence Correlations Revisited
 The crosscorrelation π‘Ÿπ‘₯𝑦(β„“ ) can be put in the form
π‘Ÿπ‘₯𝑦(β„“ ) = 𝑦(β„“) βˆ— π‘₯(βˆ’β„“)
 The autocorrelation π‘Ÿπ‘₯π‘₯(β„“ ) in the form
π‘Ÿπ‘₯π‘₯(β„“ ) = π‘₯(β„“) βˆ— π‘₯(βˆ’β„“)
 Therefore these correlations can be computed using the π‘π‘œπ‘›π‘£_π‘š
function if sequences are of finite duration.
40
Example #7
 Let π‘₯(𝑛) = [3, 11, 7, 𝟎, βˆ’ 1, 4, 2] be a prototype sequence, and let 𝑦(𝑛)
be its noise-corrupted-and-shifted version 𝑦(𝑛) = π‘₯(𝑛 βˆ’ 2) + 𝑀(𝑛)
where w(n) is Gaussian sequence with mean 0 and variance 1. Compute
the crosscorrelation between y(n) and x(n).
 Solution:
 let us compute the crosscorrelation using two different noise sequences.
41
Example #7 - Solution
42
we observe that the crosscorrelation indeed peaks at β„“ = 2, which implies that y(n) is similar to x(n) shifted by
2. This approach can be used in applications like radar signal processing in identifying and localizing targets.
Sequence Correlations Revisited
 Note that the signal-processing toolbox in MATLAB also provides a
function called xcorr for sequence correlation computations. In its
simplest form.
 computes the crosscorrelation between vectors x and y, while
 computes the autocorrelation of vector x. It generates results that are
identical to the one obtained from the proper use of the conv m
function.
 However, the π‘₯π‘π‘œπ‘Ÿπ‘Ÿ function cannot provide the timing (or lag)
information (as done by the π‘π‘œπ‘›π‘£_π‘š function), which then must be
obtained by some other means.
43
Difference Equations
 An LTI discrete system can also be described by a linear constant coefficient
difference equation of the form
 If π‘Ž 𝑁 β‰  0, then the difference equation is of order 𝑁. This equation describes a
recursive approach for computing the current output, given the input values
and previously computed output values. In practice this equation is computed
forward in time, from 𝑛 = βˆ’βˆž to 𝑛 = ∞.
 Therefore another form of this equation is
44
Difference Equations (Cont.)
 A solution to this equation can be obtained in the form
𝑦(𝑛) = 𝑦 𝐻(𝑛) + 𝑦 𝑃(𝑛)
 The homogeneous part of the solution, 𝑦 𝐻
(𝑛) , is given by
𝑦 𝐻(𝑛) =
π‘˜=1
𝑁
𝐢 π‘˜ 𝑧 π‘˜
𝑛
 where 𝑧 π‘˜, π‘˜ = 1, . . . , 𝑁 are 𝑁 roots (also called natural frequencies) of the
characteristic equation
0
𝑁
π‘Ž π‘˜ 𝑧 π‘˜
= 0
 This characteristic equation is important in determining the stability of
systems. If the roots 𝑧 π‘˜ satisfy the condition
|𝑧 π‘˜| < 1, π‘˜ = 1, . . . , 𝑁
45
MATLAB Implementation
 A function called π‘“π‘–π‘™π‘‘π‘’π‘Ÿ is available to solve difference equations
numerically, given the input and the difference equation coefficients. In
its simplest form this function is invoked by
 where
 are the coefficient arrays from the difference equation, and π‘₯ is the
input sequence array. The output 𝑦 has the same length as input π‘₯. One
must ensure that the coefficient π‘Ž0 not be π‘§π‘’π‘Ÿπ‘œ.
 To compute and plot impulse response, MATLAB provides the function
π‘–π‘šπ‘π‘§. When invoked by
 fgdg
46
Example #8
 Given the following difference equation
𝑦(𝑛) βˆ’ 𝑦(𝑛 βˆ’ 1) + 0.9𝑦(𝑛 βˆ’ 2) = π‘₯(𝑛); βˆ€ 𝑛
a. Calculate and plot the impulse response β„Ž(𝑛) at 𝑛 = βˆ’ 20, . . . , 100.
b. Calculate and plot the unit step response 𝑠(𝑛) at 𝑛 = βˆ’ 20, . . . , 100.
c. Is the system specified by β„Ž(𝑛) stable?
47
Example #8 - Solution
 From the given difference equation the coefficient arrays are
 a. MATLAB script:
 b. MATLAB script:
48
Example #8 – Solution (Cont.)
 c. To determine the stability of the system, we have to determine h(n)
for all n. Although we have not described a method to solve the
difference equation,
 we can use the plot of the impulse response to observe that h(n) is
practically zero for 𝑛 > 120. Hence the sum |β„Ž(𝑛)| can be determined from
MATLAB using
β€’ which implies that the system is stable.
 An alternate approach using MATLAB’s roots function.
β€’ Since the magnitudes of both roots are less than one, the system is stable.
49
Digital Filters
 Filter is a generic name that means a linear time-invariant system
designed for a specific job of frequency selection or frequency
discrimination. Hence discrete-time LTI systems are also called digital
filters. There are two types of digital filters.
 FIR
 IIR
50
FIR Digital Filters
 If the unit impulse response of an 𝐿𝑇𝐼 system is of finite duration, then the
system is called a finite-duration impulse response (or𝑭𝑰𝑹) filter. Hence for an
𝑭𝑰𝑹 filter β„Ž(𝑛) = 0 for 𝑛 < 𝑛1 and for 𝑛 > 𝑛2.
 The difference equation that describes a causal FIR filter is:
𝑦(𝑛) =
π‘š=0
𝑀
𝑏 π‘š π‘₯ 𝑛 βˆ’ π‘š
 Furthermore, β„Ž(0) = 𝑏0 , β„Ž(1) = 𝑏1, . . . , β„Ž(𝑀) = 𝑏 𝑀, while all other β„Ž(𝑛)’s are 0.
 FIR filters are also called Nonrecursive or moving average (MA) filters.
 In MATLAB 𝑭𝑰𝑹 filters are represented either as impulse response values {β„Ž(𝑛)} or as
difference equation coefficients {𝑏 π‘š} and {π‘Ž0 = 1} .
 Therefore to implement 𝑭𝑰𝑹 filters, we can use either the π‘π‘œπ‘›π‘£(π‘₯, β„Ž) function (and
its modification that we discussed) or the π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, 1, π‘₯) function.
 There is a difference in the outputs of these two implementations that should be
noted. The output sequence from the π‘π‘œπ‘›π‘£(π‘₯, β„Ž) function has a longer length than
both the π‘₯(𝑛) and β„Ž(𝑛) sequences. On the other hand, the output sequence from the
π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, 1, π‘₯) function has exactly the same length as the input π‘₯(𝑛) sequence. In
practice (and especially for processing signals) the use of the filter function is
encouraged. 51
IIR Digital Filters
 If the impulse response of an LTI system is of infinite duration, then the system is
called an infinite-duration impulse response (or IIR) filter.
 The following part of the general IIR difference equation:
𝑛=0
𝑁
π‘Ž 𝑛 𝑦 𝑛 βˆ’ π‘š = π‘₯(𝑛)
 Describe a recursive filter in which the output y(n) is recursively computed from its
previously computed values and is called an autoregressive (AR) filter. The impulse
response of such filter is of infinite duration and hence it represents an IIR filter.
 The general IIR difference equation is:
𝑛=0
𝑁
π‘Ž 𝑛 𝑦 𝑛 βˆ’ π‘š =
π‘š=0
𝑀
𝑏 π‘š π‘₯ 𝑛 βˆ’ π‘š
 It has two parts: an AR part and an MA part. Such an IIR filter is called an
autoregressive moving average, or an ARMA, filter. In MATLAB, IIR filters are
described by the difference equation coefficients {𝑏 π‘š} and {π‘Ž π‘˜} and are
implemented by the π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, π‘Ž, π‘₯) function.
52
53

More Related Content

What's hot

Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR) Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR) Chandrashekhar Padole
Β 
Z transforms and their applications
Z transforms and their applicationsZ transforms and their applications
Z transforms and their applicationsRam Kumar K R
Β 
OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSvishalgohel12195
Β 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
Β 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Rediet Moges
Β 
Circuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier AnalysisCircuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier AnalysisSimen Li
Β 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transformop205
Β 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems Zlatan Ahmadovic
Β 
Laplace transform
Laplace transformLaplace transform
Laplace transformNaveen Sihag
Β 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systemsAmr E. Mohamed
Β 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPTImtiyaz Rashed
Β 
Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix methodSarang Joshi
Β 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier TransformAbhishek Choksi
Β 
SIGNAL OPERATIONS
SIGNAL OPERATIONSSIGNAL OPERATIONS
SIGNAL OPERATIONSmihir jain
Β 
Hw1 solution
Hw1 solutionHw1 solution
Hw1 solutioniqbal ahmad
Β 
Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Alamgir Hossain
Β 
Unit step function
Unit step functionUnit step function
Unit step functionKifaru Malale
Β 

What's hot (20)

Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR) Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Digital Signal Processing Tutorial: Chapt 4 design of digital filters (FIR)
Β 
Z transforms and their applications
Z transforms and their applicationsZ transforms and their applications
Z transforms and their applications
Β 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
Β 
OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALS
Β 
Z Transform
Z TransformZ Transform
Z Transform
Β 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
Β 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
Β 
Circuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier AnalysisCircuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier Analysis
Β 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transform
Β 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
Β 
Lecture9
Lecture9Lecture9
Lecture9
Β 
Laplace transform
Laplace transformLaplace transform
Laplace transform
Β 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
Β 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
Β 
Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix method
Β 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier Transform
Β 
SIGNAL OPERATIONS
SIGNAL OPERATIONSSIGNAL OPERATIONS
SIGNAL OPERATIONS
Β 
Hw1 solution
Hw1 solutionHw1 solution
Hw1 solution
Β 
Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report
Β 
Unit step function
Unit step functionUnit step function
Unit step function
Β 

Viewers also liked

Discrete-Time Signal Processing
Discrete-Time Signal ProcessingDiscrete-Time Signal Processing
Discrete-Time Signal Processinglancer350
Β 
Digital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manualDigital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manualRamesh Sundar
Β 
Dsp U Lec04 Discrete Time Signals & Systems
Dsp U   Lec04 Discrete Time Signals & SystemsDsp U   Lec04 Discrete Time Signals & Systems
Dsp U Lec04 Discrete Time Signals & Systemstaha25
Β 
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Amr E. Mohamed
Β 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsAmr E. Mohamed
Β 
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Amr E. Mohamed
Β 
SE2_Lec 22_Software Configuration Management
SE2_Lec 22_Software Configuration ManagementSE2_Lec 22_Software Configuration Management
SE2_Lec 22_Software Configuration ManagementAmr E. Mohamed
Β 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignAmr E. Mohamed
Β 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignAmr E. Mohamed
Β 
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications IDSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications IAmr E. Mohamed
Β 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesAmr E. Mohamed
Β 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Amr E. Mohamed
Β 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningAmr E. Mohamed
Β 

Viewers also liked (13)

Discrete-Time Signal Processing
Discrete-Time Signal ProcessingDiscrete-Time Signal Processing
Discrete-Time Signal Processing
Β 
Digital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manualDigital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manual
Β 
Dsp U Lec04 Discrete Time Signals & Systems
Dsp U   Lec04 Discrete Time Signals & SystemsDsp U   Lec04 Discrete Time Signals & Systems
Dsp U Lec04 Discrete Time Signals & Systems
Β 
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Β 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI Systems
Β 
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Modern Control - Lec 04 - Analysis and Design of Control Systems using Root L...
Β 
SE2_Lec 22_Software Configuration Management
SE2_Lec 22_Software Configuration ManagementSE2_Lec 22_Software Configuration Management
SE2_Lec 22_Software Configuration Management
Β 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
Β 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
Β 
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications IDSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
Β 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use Cases
Β 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Β 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
Β 

Similar to DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems

DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisAmr E. Mohamed
Β 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)Ravikiran A
Β 
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptx
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptxdiscrete-timesignalsandsystems1-150402120032-conversion-gate01.pptx
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptxvimala elumalai
Β 
discrete time signals and systems
 discrete time signals and systems discrete time signals and systems
discrete time signals and systemsZlatan Ahmadovic
Β 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal ProcessingPRABHAHARAN429
Β 
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)Amr E. Mohamed
Β 
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" M Reza Rahmati
Β 
Reachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsReachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsM Reza Rahmati
Β 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsMr. RahΓΌL YΓΈGi
Β 
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docx
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docxELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docx
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docxtoltonkendal
Β 
lecture4signals-181130200508.pptx
lecture4signals-181130200508.pptxlecture4signals-181130200508.pptx
lecture4signals-181130200508.pptxRockFellerSinghRusse
Β 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODEKris014
Β 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptxIhtisham Uddin
Β 
DSP_DiscSignals_LinearS_150417.pptx
DSP_DiscSignals_LinearS_150417.pptxDSP_DiscSignals_LinearS_150417.pptx
DSP_DiscSignals_LinearS_150417.pptxHamedNassar5
Β 
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
Β 

Similar to DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems (20)

DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
Β 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
Β 
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptx
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptxdiscrete-timesignalsandsystems1-150402120032-conversion-gate01.pptx
discrete-timesignalsandsystems1-150402120032-conversion-gate01.pptx
Β 
discrete time signals and systems
 discrete time signals and systems discrete time signals and systems
discrete time signals and systems
Β 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
Β 
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
Β 
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Β 
Reachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsReachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical Systems
Β 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And Systems
Β 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
Β 
Computer Network Homework Help
Computer Network Homework HelpComputer Network Homework Help
Computer Network Homework Help
Β 
Networking Assignment Help
Networking Assignment HelpNetworking Assignment Help
Networking Assignment Help
Β 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
Β 
Chapter26
Chapter26Chapter26
Chapter26
Β 
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docx
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docxELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docx
ELEG 320L – Signals & Systems Laboratory Dr. Jibran Khan Yous.docx
Β 
lecture4signals-181130200508.pptx
lecture4signals-181130200508.pptxlecture4signals-181130200508.pptx
lecture4signals-181130200508.pptx
Β 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODE
Β 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
Β 
DSP_DiscSignals_LinearS_150417.pptx
DSP_DiscSignals_LinearS_150417.pptxDSP_DiscSignals_LinearS_150417.pptx
DSP_DiscSignals_LinearS_150417.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
Β 

More from Amr E. Mohamed

Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingAmr E. Mohamed
Β 
Dcs lec01 - introduction to discrete-time control systems
Dcs   lec01 - introduction to discrete-time control systemsDcs   lec01 - introduction to discrete-time control systems
Dcs lec01 - introduction to discrete-time control systemsAmr E. Mohamed
Β 
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing ApplicationsDDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing ApplicationsAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignAmr E. Mohamed
Β 
SE2018_Lec 17_ Coding
SE2018_Lec 17_ CodingSE2018_Lec 17_ Coding
SE2018_Lec 17_ CodingAmr E. Mohamed
Β 
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsAmr E. Mohamed
Β 
SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)Amr E. Mohamed
Β 
SE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design PatternsSE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design PatternsAmr E. Mohamed
Β 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionAmr E. Mohamed
Β 
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)Amr E. Mohamed
Β 
SE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingSE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-TransformDSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-TransformAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsAmr E. Mohamed
Β 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingDSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingAmr E. Mohamed
Β 
DSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesDSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesAmr E. Mohamed
Β 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxAmr E. Mohamed
Β 
SE18_Lec 13_ Project Planning
SE18_Lec 13_ Project PlanningSE18_Lec 13_ Project Planning
SE18_Lec 13_ Project PlanningAmr E. Mohamed
Β 

More from Amr E. Mohamed (20)

Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Β 
Dcs lec01 - introduction to discrete-time control systems
Dcs   lec01 - introduction to discrete-time control systemsDcs   lec01 - introduction to discrete-time control systems
Dcs lec01 - introduction to discrete-time control systems
Β 
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing ApplicationsDDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
Β 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
Β 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
Β 
SE2018_Lec 17_ Coding
SE2018_Lec 17_ CodingSE2018_Lec 17_ Coding
SE2018_Lec 17_ Coding
Β 
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-Tools
Β 
SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)
Β 
SE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design PatternsSE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design Patterns
Β 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Β 
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)
Β 
SE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingSE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software Testing
Β 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital Filters
Β 
DSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-TransformDSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-Transform
Β 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
Β 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software Design
Β 
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingDSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
Β 
DSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesDSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course Outlines
Β 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
Β 
SE18_Lec 13_ Project Planning
SE18_Lec 13_ Project PlanningSE18_Lec 13_ Project Planning
SE18_Lec 13_ Project Planning
Β 

Recently uploaded

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
Β 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
Β 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
Β 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
Β 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
Β 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
Β 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
Β 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
Β 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
Β 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
Β 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
Β 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
Β 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
Β 
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)dollysharma2066
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
Β 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
Β 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
Β 

Recently uploaded (20)

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
Β 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Β 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
Β 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
Β 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Β 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Β 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
Β 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
Β 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
Β 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Β 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
Β 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
Β 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
Β 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
Β 
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Serviceyoung call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
Β 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
Β 
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 β‰Ό Call Girls In Shastri Nagar (Delhi)
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
Β 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
Β 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
Β 

DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems

  • 3. Discrete-Time Signals  A discrete signal will be denoted by x(n), in which the variable n is integer- valued and represents discrete instances in time (Sequence of Number). π‘₯(𝑛) = { π‘₯(𝑛) } = { . . . , π‘₯( βˆ’ 1), π‘₯(0), π‘₯(1), . . . }  where the up-arrow indicates the sample at n = 0.  In MATLAB we can represent a finite-duration sequence by a row vector of appropriate values.  For example, a sequence x(n) = { 2, 1, βˆ’ 1, 0, 1, 4, 3, 7 } can be represented in MATLAB by  An arbitrary infinite-duration sequence cannot be represented in MATLAB due to the finite memory limitations. 3 ↑ ↑
  • 4. Types Of Sequences 1. Unit sample sequence:  For example, to implement  over the 𝑛1 ≀ 𝑛0 ≀ 𝑛2 interval, we will use the following MATLAB function. 4
  • 5. Types Of Sequences (Cont.) 2. Unit step sequence:  For example, to implement  over the 𝑛1 ≀ 𝑛0 ≀ 𝑛2 interval, we will use the following MATLAB function. 5
  • 6. Types Of Sequences (Cont.) 3. Real-valued exponential sequence:  For example, to generate π‘₯ 𝑛 = 0.9 𝑛 , 0 ≀ 𝑛 ≀ 10, we will need the following MATLAB script: 6
  • 7. Types Of Sequences (Cont.) 4. Complex-valued exponential sequence:  where Οƒ produces an attenuation (if <0) or amplification (if >0) and Ο‰ 0 is the frequency in radians.  For example, to generate π‘₯ 𝑛 = 𝑒(2 + 𝑗3)𝑛 , 0 ≀ 𝑛 ≀ 10, we will need the following MATLAB script: 7
  • 8. Types Of Sequences (Cont.) 5. Sinusoidal sequence:  where A is an amplitude and ΞΈ0 is the phase in radians.  For example, to generate π‘₯ 𝑛 = 3 π‘π‘œπ‘  0.1πœ‹π‘› + πœ‹ 3 + 2 𝑠𝑖𝑛( 0.5πœ‹π‘› ), 0 ≀ 𝑛 ≀ 10, we will need the following MATLAB script: 8
  • 9. Types Of Sequences (Cont.) 6. Random sequences:  Many practical sequences cannot be described by mathematical expressions like those above. These sequences are called random (or stochastic) sequences and are characterized by parameters of the associated probability density functions.  In MATLAB two types of (pseudo-) random sequences are available.  The rand(1,N) generates a length N random sequence whose elements are uniformly distributed between [0, 1].  The randn(1,N) generates a length N Gaussian random sequence with mean 0 and variance 1.  Other random sequences can be generated using transformations of the above functions. 9
  • 10. Types Of Sequences (Cont.) 7. Periodic sequence:  A sequence x(n) is periodic if x(n) = x(n + N), βˆ€n. The smallest integer N that satisfies this relation is called the fundamental period. We will use ˜x(n) to denote a periodic sequence.  To generate P periods of π‘₯(𝑛) from one period { π‘₯(𝑛), 0 ≀ 𝑛 ≀ 𝑁 βˆ’ 1} ,we can copy π‘₯(𝑛) 𝑃 times:  But an elegant approach is to use MATLAB’s powerful indexing capabilities. 10
  • 11. Operations On Sequences 1. Signal addition:  This is a sample-by-sample addition given by  The following function, called the π‘ π‘–π‘”π‘Žπ‘‘π‘‘ function, demonstrates these operations. 11
  • 12. Operations On Sequences (Cont.) 2. Signal multiplication:  This is a sample-by-sample (or β€œdot”) multiplication) given by This is a sample-by- sample addition given by  The following function, called the π‘ π‘–π‘”π‘šπ‘’π‘™π‘‘ function, demonstrates these operations. 12
  • 13. Operations On Sequences (Cont.) 3. Scaling:  In this operation each sample is multiplied by a scalar Ξ±. 𝛼 { π‘₯(𝑛) } = { 𝛼π‘₯(𝑛) }  An arithmetic operator (*) is used to implement the scaling operation in MATLAB. 13
  • 14. Operations On Sequences (Cont.) 4. Shifting:  In this operation, each sample of x(n) is shifted by an amount k to obtain a shifted sequence y(n). 𝑦(𝑛) = { π‘₯(𝑛 βˆ’ π‘˜) }  If we let π‘š = 𝑛 βˆ’ π‘˜, then 𝑛 = π‘š + π‘˜ and the above operation is given by 𝑦(π‘š + π‘˜) = { π‘₯ (π‘š) }  This is shown in the function π‘ π‘–π‘”π‘ β„Žπ‘–π‘“π‘‘. 14
  • 15. Operations On Sequences (Cont.) 5. Folding:  In this operation each sample of x(n) is flipped around n = 0 to obtain a folded sequence y(n). 𝑦(𝑛) = { π‘₯( βˆ’ 𝑛) }  In MATLAB this operation is implemented by π‘“π‘™π‘–π‘π‘™π‘Ÿ(π‘₯) function for sample values and by βˆ’π‘“π‘™π‘–π‘π‘™π‘Ÿ(𝑛) function for sample positions as shown in the π‘ π‘–π‘”π‘“π‘œπ‘™π‘‘ function. 15
  • 16. Operations On Sequences (Cont.) 6. Sample summation:  This operation differs from signal addition operation. It adds all sample values of π‘₯(𝑛) between 𝑛1 and 𝑛2.  It is implemented by the π‘ π‘’π‘š(π‘₯(𝑛1: 𝑛2)) function. 16
  • 17. Operations On Sequences (Cont.) 7. Sample products:  This operation also differs from signal multiplication operation. It multiplies all sample values of π‘₯(𝑛) between 𝑛1 and 𝑛2.This operation differs from signal addition operation. It adds all sample values of π‘₯(𝑛) between 𝑛1 and 𝑛2.  It is implemented by the π‘π‘Ÿπ‘œπ‘‘(π‘₯(𝑛1: 𝑛2)) function. 17
  • 18. Operations On Sequences (Cont.) 8. Signal energy:  The energy of a sequence x(n) is given by  where superscript (βˆ—) denotes the operation of complex conjugation. The energy of a finite-duration sequence π‘₯(𝑛) can be computed in MATLAB using 18
  • 19. OPERATIONS ON SEQUENCES (Cont.) 9. Signal power:  The average power of a periodic sequence π‘₯(𝑛) with fundamental period 𝑁 is given by 19
  • 21. EXAMPLE #1 - Solution 21
  • 22. EXAMPLE #1 - Solution 22
  • 23. EXAMPLE #1 - Solution 23
  • 24. EXAMPLE #1 - Solution 24 Note that over the given interval, the sequence ˜x (n) has four periods.
  • 26. EXAMPLE #2 - Solution 26
  • 28. EXAMPLE #3 - Solution 28
  • 29. Even and odd synthesis  A real-valued sequence x e (n) is called even (symmetric) if π‘₯ 𝑒(βˆ’π‘›) = π‘₯ 𝑒(𝑛)  Similarly, a real-valued sequence x o (n) is called odd (antisymmetric) if π‘₯ π‘œ(βˆ’π‘›) = βˆ’π‘₯ π‘œ(𝑛)  Then any arbitrary real-valued sequence x(n) can be decomposed into its even and odd components π‘₯(𝑛) = π‘₯ 𝑒(𝑛) + π‘₯ 𝑒(𝑛)  where the even and odd parts are given by π‘₯ 𝑒 𝑛 = 1 2 π‘₯ 𝑛 + π‘₯ βˆ’π‘› π‘Žπ‘›π‘‘ π‘₯ π‘œ(𝑛) = 1 2 [π‘₯(𝑛) βˆ’ π‘₯(βˆ’π‘›)] 29
  • 30. Even and odd synthesis  Using MATLAB operations discussed so far, we can obtain the following π‘’π‘£π‘’π‘›π‘œπ‘‘π‘‘ function. 30
  • 31. EXAMPLE #4 with Solution 31
  • 33. Discrete Time Systems  A discrete-time system (or discrete system for short) is described as an operator T[ Β· ] that takes a sequence x(n) (called excitation) and transforms it into another sequence y(n) (called response). That is, 𝑦(𝑛) = 𝑇[π‘₯(𝑛)] 1. LINEAR SYSTEMS:  A discrete system T[ Β· ] is a linear operator L[ Β· ] if and only if L[ Β· ] satisfies the principle of superposition, namely, 𝐿 π‘Ž1 π‘₯1 𝑛 + π‘Ž2 π‘₯2 𝑛 = π‘Ž1 𝐿 π‘₯1 𝑛 + π‘Ž2 𝐿[π‘₯2(𝑛)], βˆ€π‘Ž1, π‘Ž2, π‘₯1 𝑛 , π‘₯1 𝑛 33
  • 34. Discrete Time Systems (Cont.) 2. Linear time-invariant (LTI) system:  A linear system in which an input-output pair, x(n) and y(n), is invariant to a shift k in time is called a linear time-invariant system i.e., 𝑦(𝑛) = 𝐿[π‘₯(𝑛)] β‡’ 𝐿[π‘₯(𝑛 βˆ’ π‘˜)] = 𝑦(𝑛 βˆ’ π‘˜)  For an LTI system the L[Β·] and the shifting operators are reversible as shown here.  Let x(n) and y(n) be the input-output pair of an LTI system. Then the output is given by the convolution: 𝑦 𝑛 = 𝐿𝑇𝐼 π‘₯ 𝑛 = π‘₯ 𝑛 βˆ— β„Ž(𝑛) = π‘˜=βˆ’βˆž ∞ π‘₯(π‘˜)β„Ž(𝑛 βˆ’ π‘˜) 34
  • 35. Discrete Time Systems (Cont.) 3. Stability:  The primary reason for considering stability is to avoid building harmful systems or to avoid burnout or saturation in the system operation.  A system is said to be bounded-input bounded-output (BIBO) stable if every bounded input produces a bounded output. | π‘₯(𝑛) | < ∞ β‡’ | 𝑦(𝑛) | < ∞ , βˆ€ π‘₯, 𝑦  An LTI system is BIBO stable if and only if its impulse response is absolutely summable. 𝐡𝐼𝐡𝑂 π‘†π‘‘π‘Žπ‘π‘–π‘™π‘–π‘‘π‘¦ ⇐⇒ βˆ’βˆž ∞ | β„Ž(𝑛) | < ∞ 35
  • 36. Discrete Time Systems (Cont.) 4. Causality:  This important concept is necessary to make sure that systems can be built. A system is said to be causal if the output at index 𝑛0 depends only on the input up to and including the index 𝑛0; that is, the output does not depend on the future values of the input.  An LTI system is causal if and only if the impulse response β„Ž(𝑛) = 0, 𝑛 < 0 36
  • 37. Convolution  MATLAB does provide a built-in function called conv that computes the convolution between two finite-duration sequences. The conv function assumes that the two sequences begin at n = 0 and is invoked by  Example #5:  Let the rectangular pulse π‘₯(𝑛) = 𝑒(𝑛) βˆ’ 𝑒(𝑛 βˆ’ 10) of Example 2.4 be an input to an LTI system with impulse response β„Ž(𝑛) = (0.9) 𝑛 𝑒(𝑛) . Determine the output y(n).  Solution: 37
  • 38. Convolution (Cont.)  A simple modification of the conv function, called π‘π‘œπ‘›π‘£_π‘š , which performs the convolution of arbitrary support sequences can now be designed. 38
  • 39. Example #6  Given the following two sequences π‘₯ 𝑛 = 3, 11, 7, 0, βˆ’ 1, 4, 2 , βˆ’ 3 ≀ 𝑛 ≀ 3; β„Ž(𝑛) = [2, 3, 0, βˆ’ 5, 2, 1], βˆ’ 1 ≀ 𝑛 ≀ 4 determine the convolution y(n) = x(n) βˆ— h(n).  Solution: 39 ↑ ↑
  • 40. Sequence Correlations Revisited  The crosscorrelation π‘Ÿπ‘₯𝑦(β„“ ) can be put in the form π‘Ÿπ‘₯𝑦(β„“ ) = 𝑦(β„“) βˆ— π‘₯(βˆ’β„“)  The autocorrelation π‘Ÿπ‘₯π‘₯(β„“ ) in the form π‘Ÿπ‘₯π‘₯(β„“ ) = π‘₯(β„“) βˆ— π‘₯(βˆ’β„“)  Therefore these correlations can be computed using the π‘π‘œπ‘›π‘£_π‘š function if sequences are of finite duration. 40
  • 41. Example #7  Let π‘₯(𝑛) = [3, 11, 7, 𝟎, βˆ’ 1, 4, 2] be a prototype sequence, and let 𝑦(𝑛) be its noise-corrupted-and-shifted version 𝑦(𝑛) = π‘₯(𝑛 βˆ’ 2) + 𝑀(𝑛) where w(n) is Gaussian sequence with mean 0 and variance 1. Compute the crosscorrelation between y(n) and x(n).  Solution:  let us compute the crosscorrelation using two different noise sequences. 41
  • 42. Example #7 - Solution 42 we observe that the crosscorrelation indeed peaks at β„“ = 2, which implies that y(n) is similar to x(n) shifted by 2. This approach can be used in applications like radar signal processing in identifying and localizing targets.
  • 43. Sequence Correlations Revisited  Note that the signal-processing toolbox in MATLAB also provides a function called xcorr for sequence correlation computations. In its simplest form.  computes the crosscorrelation between vectors x and y, while  computes the autocorrelation of vector x. It generates results that are identical to the one obtained from the proper use of the conv m function.  However, the π‘₯π‘π‘œπ‘Ÿπ‘Ÿ function cannot provide the timing (or lag) information (as done by the π‘π‘œπ‘›π‘£_π‘š function), which then must be obtained by some other means. 43
  • 44. Difference Equations  An LTI discrete system can also be described by a linear constant coefficient difference equation of the form  If π‘Ž 𝑁 β‰  0, then the difference equation is of order 𝑁. This equation describes a recursive approach for computing the current output, given the input values and previously computed output values. In practice this equation is computed forward in time, from 𝑛 = βˆ’βˆž to 𝑛 = ∞.  Therefore another form of this equation is 44
  • 45. Difference Equations (Cont.)  A solution to this equation can be obtained in the form 𝑦(𝑛) = 𝑦 𝐻(𝑛) + 𝑦 𝑃(𝑛)  The homogeneous part of the solution, 𝑦 𝐻 (𝑛) , is given by 𝑦 𝐻(𝑛) = π‘˜=1 𝑁 𝐢 π‘˜ 𝑧 π‘˜ 𝑛  where 𝑧 π‘˜, π‘˜ = 1, . . . , 𝑁 are 𝑁 roots (also called natural frequencies) of the characteristic equation 0 𝑁 π‘Ž π‘˜ 𝑧 π‘˜ = 0  This characteristic equation is important in determining the stability of systems. If the roots 𝑧 π‘˜ satisfy the condition |𝑧 π‘˜| < 1, π‘˜ = 1, . . . , 𝑁 45
  • 46. MATLAB Implementation  A function called π‘“π‘–π‘™π‘‘π‘’π‘Ÿ is available to solve difference equations numerically, given the input and the difference equation coefficients. In its simplest form this function is invoked by  where  are the coefficient arrays from the difference equation, and π‘₯ is the input sequence array. The output 𝑦 has the same length as input π‘₯. One must ensure that the coefficient π‘Ž0 not be π‘§π‘’π‘Ÿπ‘œ.  To compute and plot impulse response, MATLAB provides the function π‘–π‘šπ‘π‘§. When invoked by  fgdg 46
  • 47. Example #8  Given the following difference equation 𝑦(𝑛) βˆ’ 𝑦(𝑛 βˆ’ 1) + 0.9𝑦(𝑛 βˆ’ 2) = π‘₯(𝑛); βˆ€ 𝑛 a. Calculate and plot the impulse response β„Ž(𝑛) at 𝑛 = βˆ’ 20, . . . , 100. b. Calculate and plot the unit step response 𝑠(𝑛) at 𝑛 = βˆ’ 20, . . . , 100. c. Is the system specified by β„Ž(𝑛) stable? 47
  • 48. Example #8 - Solution  From the given difference equation the coefficient arrays are  a. MATLAB script:  b. MATLAB script: 48
  • 49. Example #8 – Solution (Cont.)  c. To determine the stability of the system, we have to determine h(n) for all n. Although we have not described a method to solve the difference equation,  we can use the plot of the impulse response to observe that h(n) is practically zero for 𝑛 > 120. Hence the sum |β„Ž(𝑛)| can be determined from MATLAB using β€’ which implies that the system is stable.  An alternate approach using MATLAB’s roots function. β€’ Since the magnitudes of both roots are less than one, the system is stable. 49
  • 50. Digital Filters  Filter is a generic name that means a linear time-invariant system designed for a specific job of frequency selection or frequency discrimination. Hence discrete-time LTI systems are also called digital filters. There are two types of digital filters.  FIR  IIR 50
  • 51. FIR Digital Filters  If the unit impulse response of an 𝐿𝑇𝐼 system is of finite duration, then the system is called a finite-duration impulse response (or𝑭𝑰𝑹) filter. Hence for an 𝑭𝑰𝑹 filter β„Ž(𝑛) = 0 for 𝑛 < 𝑛1 and for 𝑛 > 𝑛2.  The difference equation that describes a causal FIR filter is: 𝑦(𝑛) = π‘š=0 𝑀 𝑏 π‘š π‘₯ 𝑛 βˆ’ π‘š  Furthermore, β„Ž(0) = 𝑏0 , β„Ž(1) = 𝑏1, . . . , β„Ž(𝑀) = 𝑏 𝑀, while all other β„Ž(𝑛)’s are 0.  FIR filters are also called Nonrecursive or moving average (MA) filters.  In MATLAB 𝑭𝑰𝑹 filters are represented either as impulse response values {β„Ž(𝑛)} or as difference equation coefficients {𝑏 π‘š} and {π‘Ž0 = 1} .  Therefore to implement 𝑭𝑰𝑹 filters, we can use either the π‘π‘œπ‘›π‘£(π‘₯, β„Ž) function (and its modification that we discussed) or the π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, 1, π‘₯) function.  There is a difference in the outputs of these two implementations that should be noted. The output sequence from the π‘π‘œπ‘›π‘£(π‘₯, β„Ž) function has a longer length than both the π‘₯(𝑛) and β„Ž(𝑛) sequences. On the other hand, the output sequence from the π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, 1, π‘₯) function has exactly the same length as the input π‘₯(𝑛) sequence. In practice (and especially for processing signals) the use of the filter function is encouraged. 51
  • 52. IIR Digital Filters  If the impulse response of an LTI system is of infinite duration, then the system is called an infinite-duration impulse response (or IIR) filter.  The following part of the general IIR difference equation: 𝑛=0 𝑁 π‘Ž 𝑛 𝑦 𝑛 βˆ’ π‘š = π‘₯(𝑛)  Describe a recursive filter in which the output y(n) is recursively computed from its previously computed values and is called an autoregressive (AR) filter. The impulse response of such filter is of infinite duration and hence it represents an IIR filter.  The general IIR difference equation is: 𝑛=0 𝑁 π‘Ž 𝑛 𝑦 𝑛 βˆ’ π‘š = π‘š=0 𝑀 𝑏 π‘š π‘₯ 𝑛 βˆ’ π‘š  It has two parts: an AR part and an MA part. Such an IIR filter is called an autoregressive moving average, or an ARMA, filter. In MATLAB, IIR filters are described by the difference equation coefficients {𝑏 π‘š} and {π‘Ž π‘˜} and are implemented by the π‘“π‘–π‘™π‘‘π‘’π‘Ÿ(𝑏, π‘Ž, π‘₯) function. 52
  • 53. 53