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 ๏ฌnite-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 in๏ฌnite-duration sequence cannot be represented in
MATLAB due to the ๏ฌnite 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 ampli๏ฌcation (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 satis๏ฌes 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 ๏ฌ‚ipped 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 di๏ฌ€ers 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 di๏ฌ€ers from signal multiplication operation. It
multiplies all sample values of ๐‘ฅ(๐‘›) between ๐‘›1 and ๐‘›2.This operation
di๏ฌ€ers 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 ๏ฌnite-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[ ยท ]
satis๏ฌes 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 ๏ฌnite-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 modi๏ฌcation 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 ๏ฌnite 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 di๏ฌ€erent 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 coe๏ฌƒcient
di๏ฌ€erence equation of the form
๏ฑ If ๐‘Ž ๐‘ โ‰  0, then the di๏ฌ€erence 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 di๏ฌ€erence equations
numerically, given the input and the di๏ฌ€erence equation coe๏ฌƒcients. In
its simplest form this function is invoked by
๏ฑ where
๏ฑ are the coe๏ฌƒcient arrays from the difference equation, and ๐‘ฅ is the
input sequence array. The output ๐‘ฆ has the same length as input ๐‘ฅ. One
must ensure that the coe๏ฌƒcient ๐‘Ž0 not be ๐‘ง๐‘’๐‘Ÿ๐‘œ.
๏ฑ To compute and plot impulse response, MATLAB provides the function
๐‘–๐‘š๐‘๐‘ง. When invoked by
๏ฑ fgdg
46
Example #8
๏ฑ Given the following di๏ฌ€erence 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 speci๏ฌed by โ„Ž(๐‘›) stable?
47
Example #8 - Solution
๏ฑ From the given di๏ฌ€erence equation the coe๏ฌƒcient 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
di๏ฌ€erence 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 speci๏ฌc job of frequency selection or frequency
discrimination. Hence discrete-time LTI systems are also called digital
๏ฌlters. There are two types of digital ๏ฌlters.
๏‚ง FIR
๏‚ง IIR
50
FIR Digital Filters
๏ฑ If the unit impulse response of an ๐ฟ๐‘‡๐ผ system is of ๏ฌnite duration, then the
system is called a ๏ฌnite-duration impulse response (or๐‘ญ๐‘ฐ๐‘น) ๏ฌlter. Hence for an
๐‘ญ๐‘ฐ๐‘น ๏ฌlter โ„Ž(๐‘›) = 0 for ๐‘› < ๐‘›1 and for ๐‘› > ๐‘›2.
๏ฑ The di๏ฌ€erence equation that describes a causal FIR ๏ฌlter is:
๐‘ฆ(๐‘›) =
๐‘š=0
๐‘€
๐‘ ๐‘š ๐‘ฅ ๐‘› โˆ’ ๐‘š
๏‚ง Furthermore, โ„Ž(0) = ๐‘0 , โ„Ž(1) = ๐‘1, . . . , โ„Ž(๐‘€) = ๐‘ ๐‘€, while all other โ„Ž(๐‘›)โ€™s are 0.
๏‚ง FIR ๏ฌlters are also called Nonrecursive or moving average (MA) ๏ฌlters.
๏‚ง In MATLAB ๐‘ญ๐‘ฐ๐‘น ๏ฌlters are represented either as impulse response values {โ„Ž(๐‘›)} or as
di๏ฌ€erence equation coe๏ฌƒcients {๐‘ ๐‘š} and {๐‘Ž0 = 1} .
๏‚ง Therefore to implement ๐‘ญ๐‘ฐ๐‘น ๏ฌlters, we can use either the ๐‘๐‘œ๐‘›๐‘ฃ(๐‘ฅ, โ„Ž) function (and
its modi๏ฌcation that we discussed) or the ๐‘“๐‘–๐‘™๐‘ก๐‘’๐‘Ÿ(๐‘, 1, ๐‘ฅ) function.
๏‚ง There is a di๏ฌ€erence 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 in๏ฌnite duration, then the system is
called an in๏ฌnite-duration impulse response (or IIR) ๏ฌlter.
๏ฑ The following part of the general IIR di๏ฌ€erence equation:
๐‘›=0
๐‘
๐‘Ž ๐‘› ๐‘ฆ ๐‘› โˆ’ ๐‘š = ๐‘ฅ(๐‘›)
๏‚ง Describe a recursive ๏ฌlter in which the output y(n) is recursively computed from its
previously computed values and is called an autoregressive (AR) ๏ฌlter. The impulse
response of such ๏ฌlter is of in๏ฌnite duration and hence it represents an IIR ๏ฌlter.
๏ฑ The general IIR di๏ฌ€erence equation is:
๐‘›=0
๐‘
๐‘Ž ๐‘› ๐‘ฆ ๐‘› โˆ’ ๐‘š =
๐‘š=0
๐‘€
๐‘ ๐‘š ๐‘ฅ ๐‘› โˆ’ ๐‘š
๏‚ง It has two parts: an AR part and an MA part. Such an IIR ๏ฌlter is called an
autoregressive moving average, or an ARMA, ๏ฌlter. In MATLAB, IIR ๏ฌlters are
described by the di๏ฌ€erence equation coe๏ฌƒcients {๐‘ ๐‘š} and {๐‘Ž ๐‘˜} and are
implemented by the ๐‘“๐‘–๐‘™๐‘ก๐‘’๐‘Ÿ(๐‘, ๐‘Ž, ๐‘ฅ) function.
52
53

More Related Content

What's hot

DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and SystemsDSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and SystemsAmr E. Mohamed
ย 
OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSvishalgohel12195
ย 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP@zenafaris91
ย 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemAttaporn Ninsuwan
ย 
Fir filter design using Frequency sampling method
Fir filter design using Frequency sampling methodFir filter design using Frequency sampling method
Fir filter design using Frequency sampling methodSarang Joshi
ย 
inverse z-transform ppt
inverse z-transform pptinverse z-transform ppt
inverse z-transform pptmihir jain
ย 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular ConvolutionSarang Joshi
ย 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filtersop205
ย 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal001Abhishek1
ย 
Discrete fourier transform
Discrete fourier transformDiscrete fourier transform
Discrete fourier transformMOHAMMAD AKRAM
ย 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier TransformAbhishek Choksi
ย 
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
ย 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)Bin Biny Bino
ย 
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
ย 
Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix methodSarang Joshi
ย 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems Zlatan Ahmadovic
ย 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals MdFazleRabbi18
ย 

What's hot (20)

DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and SystemsDSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
ย 
OPERATIONS ON SIGNALS
OPERATIONS ON SIGNALSOPERATIONS ON SIGNALS
OPERATIONS ON SIGNALS
ย 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
ย 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant System
ย 
Digital signal processing part2
Digital signal processing part2Digital signal processing part2
Digital signal processing part2
ย 
Fir filter design using Frequency sampling method
Fir filter design using Frequency sampling methodFir filter design using Frequency sampling method
Fir filter design using Frequency sampling method
ย 
convolution
convolutionconvolution
convolution
ย 
inverse z-transform ppt
inverse z-transform pptinverse z-transform ppt
inverse z-transform ppt
ย 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular Convolution
ย 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
ย 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal
ย 
Discrete fourier transform
Discrete fourier transformDiscrete fourier transform
Discrete fourier transform
ย 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier 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
ย 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)
ย 
Dif fft
Dif fftDif fft
Dif fft
ย 
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
ย 
Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix method
ย 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
ย 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
ย 

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
ย 
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
ย 
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
ย 
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
ย 
Lecture 4: Classification of system
Lecture 4: Classification of system Lecture 4: Classification of system
Lecture 4: Classification of system Jawaher Abdulwahab Fadhil
ย 

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
ย 
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
ย 
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
ย 
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
ย 
Lecture 4: Classification of system
Lecture 4: Classification of system Lecture 4: Classification of system
Lecture 4: Classification of system
ย 

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 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
ย 
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 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 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
ย 
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
ย 
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 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
ย 
SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1Amr 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 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
ย 
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 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 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
ย 
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
ย 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software Design
ย 
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
ย 
SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1
ย 

Recently uploaded

NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
ย 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsArindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Standamitlee9823
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
ย 

Recently uploaded (20)

NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
ย 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 

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 ๏ฌnite-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 in๏ฌnite-duration sequence cannot be represented in MATLAB due to the ๏ฌnite 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 ampli๏ฌcation (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 satis๏ฌes 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 ๏ฌ‚ipped 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 di๏ฌ€ers 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 di๏ฌ€ers from signal multiplication operation. It multiplies all sample values of ๐‘ฅ(๐‘›) between ๐‘›1 and ๐‘›2.This operation di๏ฌ€ers 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 ๏ฌnite-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[ ยท ] satis๏ฌes 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 ๏ฌnite-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 modi๏ฌcation 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 ๏ฌnite 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 di๏ฌ€erent 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 coe๏ฌƒcient di๏ฌ€erence equation of the form ๏ฑ If ๐‘Ž ๐‘ โ‰  0, then the di๏ฌ€erence 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 di๏ฌ€erence equations numerically, given the input and the di๏ฌ€erence equation coe๏ฌƒcients. In its simplest form this function is invoked by ๏ฑ where ๏ฑ are the coe๏ฌƒcient arrays from the difference equation, and ๐‘ฅ is the input sequence array. The output ๐‘ฆ has the same length as input ๐‘ฅ. One must ensure that the coe๏ฌƒcient ๐‘Ž0 not be ๐‘ง๐‘’๐‘Ÿ๐‘œ. ๏ฑ To compute and plot impulse response, MATLAB provides the function ๐‘–๐‘š๐‘๐‘ง. When invoked by ๏ฑ fgdg 46
  • 47. Example #8 ๏ฑ Given the following di๏ฌ€erence 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 speci๏ฌed by โ„Ž(๐‘›) stable? 47
  • 48. Example #8 - Solution ๏ฑ From the given di๏ฌ€erence equation the coe๏ฌƒcient 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 di๏ฌ€erence 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 speci๏ฌc job of frequency selection or frequency discrimination. Hence discrete-time LTI systems are also called digital ๏ฌlters. There are two types of digital ๏ฌlters. ๏‚ง FIR ๏‚ง IIR 50
  • 51. FIR Digital Filters ๏ฑ If the unit impulse response of an ๐ฟ๐‘‡๐ผ system is of ๏ฌnite duration, then the system is called a ๏ฌnite-duration impulse response (or๐‘ญ๐‘ฐ๐‘น) ๏ฌlter. Hence for an ๐‘ญ๐‘ฐ๐‘น ๏ฌlter โ„Ž(๐‘›) = 0 for ๐‘› < ๐‘›1 and for ๐‘› > ๐‘›2. ๏ฑ The di๏ฌ€erence equation that describes a causal FIR ๏ฌlter is: ๐‘ฆ(๐‘›) = ๐‘š=0 ๐‘€ ๐‘ ๐‘š ๐‘ฅ ๐‘› โˆ’ ๐‘š ๏‚ง Furthermore, โ„Ž(0) = ๐‘0 , โ„Ž(1) = ๐‘1, . . . , โ„Ž(๐‘€) = ๐‘ ๐‘€, while all other โ„Ž(๐‘›)โ€™s are 0. ๏‚ง FIR ๏ฌlters are also called Nonrecursive or moving average (MA) ๏ฌlters. ๏‚ง In MATLAB ๐‘ญ๐‘ฐ๐‘น ๏ฌlters are represented either as impulse response values {โ„Ž(๐‘›)} or as di๏ฌ€erence equation coe๏ฌƒcients {๐‘ ๐‘š} and {๐‘Ž0 = 1} . ๏‚ง Therefore to implement ๐‘ญ๐‘ฐ๐‘น ๏ฌlters, we can use either the ๐‘๐‘œ๐‘›๐‘ฃ(๐‘ฅ, โ„Ž) function (and its modi๏ฌcation that we discussed) or the ๐‘“๐‘–๐‘™๐‘ก๐‘’๐‘Ÿ(๐‘, 1, ๐‘ฅ) function. ๏‚ง There is a di๏ฌ€erence 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 in๏ฌnite duration, then the system is called an in๏ฌnite-duration impulse response (or IIR) ๏ฌlter. ๏ฑ The following part of the general IIR di๏ฌ€erence equation: ๐‘›=0 ๐‘ ๐‘Ž ๐‘› ๐‘ฆ ๐‘› โˆ’ ๐‘š = ๐‘ฅ(๐‘›) ๏‚ง Describe a recursive ๏ฌlter in which the output y(n) is recursively computed from its previously computed values and is called an autoregressive (AR) ๏ฌlter. The impulse response of such ๏ฌlter is of in๏ฌnite duration and hence it represents an IIR ๏ฌlter. ๏ฑ The general IIR di๏ฌ€erence equation is: ๐‘›=0 ๐‘ ๐‘Ž ๐‘› ๐‘ฆ ๐‘› โˆ’ ๐‘š = ๐‘š=0 ๐‘€ ๐‘ ๐‘š ๐‘ฅ ๐‘› โˆ’ ๐‘š ๏‚ง It has two parts: an AR part and an MA part. Such an IIR ๏ฌlter is called an autoregressive moving average, or an ARMA, ๏ฌlter. In MATLAB, IIR ๏ฌlters are described by the di๏ฌ€erence equation coe๏ฌƒcients {๐‘ ๐‘š} and {๐‘Ž ๐‘˜} and are implemented by the ๐‘“๐‘–๐‘™๐‘ก๐‘’๐‘Ÿ(๐‘, ๐‘Ž, ๐‘ฅ) function. 52
  • 53. 53