discrete time signals and systems

64
Discrete-Time signals: sequences Discreet-Time signals are represented mathematically as sequences of numbers The sequence is denoted , and it is written formally as where n is an integer number In practice sequences arises from the periodic sampling of an analog signal 1

Transcript of discrete time signals and systems

Page 1: discrete time signals and systems

Discrete-Time signals: sequences

Discreet-Time signals are represented mathematically as sequences of numbers

The sequence is denoted , and it is written formally as

where n is an integer number

In practice sequences arises from the periodic sampling of an analog signal

1

Page 2: discrete time signals and systems

Discrete-Time signals: sequences

In this case the numeric value of the nth number in the sequence is equal to the value of the analog signal, , at time

2

Page 3: discrete time signals and systems

Examples of sequences

3

Page 4: discrete time signals and systems

Basic sequences and sequence operation

The product and sum of two sequences x[n] and are defined as the sample by sample product and sum

Multiplication of a sequence by a number is defined as the multiplication of each sample value by

A sample is said to be delayed or shifted version of if

4

Page 5: discrete time signals and systems

MATLAB exercise

Record a voice signal using the audiorecorder function for 5 seconds with the following specifications sampling frequency of 44100 Number of quantization bits 16 Number of channels = 1 for mono Try to multiply the recorded samples by a

scaling factor of then by Play the signal and hear the voice

5

Page 6: discrete time signals and systems

Special sequences Unit sample sequence

Unit sample sequence is defined as the sequence

One of the important aspects of the impulse sequence is that an arbitrary sequence can be presented as a sum of scaled, delayed impulses as shown in the next slide

6

Page 7: discrete time signals and systems

Special sequences Unit sample sequence

In general any sequence can be written as

7

Page 8: discrete time signals and systems

Special sequences Unit step sequence

The unit step sequence is given by

8

Page 9: discrete time signals and systems

Special sequences Unit step sequence

The unit step sequence is given by

9

Page 10: discrete time signals and systems

Special sequences Unit step sequence

The unit step sequence in terms of delayed impulses can be written as

Note that the impulse sequence can be expressed as the first backward difference of the unit step sequence

10

Page 11: discrete time signals and systems

Special sequences exponential sequences

Exponential sequence are important in representing and analyzing linear time invariant systems

The general form of an exponential sequence is given by

If and are real then the sequence is real

If and is positive then the sequence values are positive and decreasing with increasing

11

Page 12: discrete time signals and systems

Special sequences exponential sequences

Graphical representation of exponential sequence

12

Page 13: discrete time signals and systems

Special sequences sinusoidal sequences

The general form of sinusoidal sequence is given by as shown

13

Page 14: discrete time signals and systems

Special sequences sinusoidal and complex exponential sequence

The exponential sequence with complex has a real and imaginary parts that are exponentially weighted sinusoids

If and then the sequence can be expressed in either one of the following forms

14

Page 15: discrete time signals and systems

Notes about sequences

When discussing either complex exponential signals of the form or real sinusoidal signal of the form we need only to consider frequencies in an interval of length of only because

15

Page 16: discrete time signals and systems

Periodic sequence

A periodic sequence is a sequence that satisfies the following equation

,

Where is an integer number

If this condition is tested for the discrete time sinusoids, then

Which requires

16

Page 17: discrete time signals and systems

Periodic sequence

Where is an integer

A similar statement holds for the complex exponential

Where is an integer number

Again

17

Page 18: discrete time signals and systems

Example

Determine if the following sequences are periodic or not. If the sequence is periodic find its period

18

Page 19: discrete time signals and systems

solution

a) For the first sequence we have or since is an integer value the sequence is periodic

b) For the second sequence or since is not an integer value for the sequence is aperiodic if

19

Page 20: discrete time signals and systems

2.2 Discrete time systems

A discrete-time system is a system that maps an input sequence with an output sequence

20

Page 21: discrete time signals and systems

Discrete time system examples

There are many systems will be investigated through out this course

Examples of these systems are1. The ideal delay system which is described

mathematically by

2. Moving average system which is described mathematically by

21

Page 22: discrete time signals and systems

Discrete time system classifications

Systems can be classifieds into one of the following categories

1. Memoryless Systems. A system is classified into memoryless system if the output at every value of depends only on the input of at the same value of . An example of a memoryless system is the squarer system described by

22

Page 23: discrete time signals and systems

Discrete time system classifications

2. Linear systems. Any system satisfies the superposition and the scaling property is classifieds as a linear system. As an example of a linear system is the accumulator system described by

3. Time-invariant system is a system for which a time shift or delay of the input sequence causes a corresponding shift in the output sequence

23

Page 24: discrete time signals and systems

Discrete time system classifications

Example show that the accumulator system is a time invariant system

solution

Assume that the input to the accumulator is , then its output is

Let

This means that

24

Page 25: discrete time signals and systems

Discrete time system classifications

4. Causality, a system is causal if the output sequence value at the index depends only on the input sequence values for

For example the forward difference system described by is not causal because the current value of the output depends on future value of the input

Another example is the backward difference system is a causal system since the output depends only on the present and past values of the input

25

Page 26: discrete time signals and systems

Discrete time system classifications

5. Stability, a system is stable if and only if every bounded input sequence produces a bounded output sequence

Such a system is called BIBO

in equation form

In general any sequence that has the form is stable system

26

Page 27: discrete time signals and systems

Linear time-invariant system

The linear time-invariant system is an important system since many of the system we deal with in signal processing are of this type

The output sequence in response to the input sequence applied to the input of the linear time-invariant system is given by the convolutional sum

27

Page 28: discrete time signals and systems

Linear time-invariant system

In order to compute the convolution we draw both and sequences as shown below

28

Page 29: discrete time signals and systems

Linear time-invariant system

From the Figure, we have

The next sequence interval is shown by the next graph that is

29

Page 30: discrete time signals and systems

Linear time-invariant system

The output sequence for this interval is given by

This equation can be solved analytically by using the geometric series expansion

30

Page 31: discrete time signals and systems

Linear time-invariant system

The output sequence for this interval is given by

This equation can be solved analytically by using the geometric series expansion

31

Page 32: discrete time signals and systems

Convolution example

Which yields the following result

We consider the next interval when

The output sequence is given by

32

Page 33: discrete time signals and systems

Convolution example

Which yields the following result

The final answer for the output sequence for these three intervals is given by

33

Page 34: discrete time signals and systems

Convolution example

34

Page 35: discrete time signals and systems

Convolution in Matlab

Convolution can be accomplished easily in matlab by using the function conv(u,v)

The above example can be solved easily in matalb by using the following code in matlabn=1:10;

h=ones(1,5);

x=0.4.^n;

Y=conv(x,h);

stem(y);

35

Page 36: discrete time signals and systems

2.4 Properties of linear time invariant system

The output sequence of all LTI are described by the convolution sum

Where is the impulse response of the LTI system

This means that is a complete characterization of the properties of a specific LTI system

36

Page 37: discrete time signals and systems

Properties of the convolution sum

commutative

Distribution over addition

Associative

37

Page 38: discrete time signals and systems

Graphical representation of combined LTI systems

38

Cascaded systems can be presented by a single system whose impulse response is given by . Cascaded systems satisfy the convolution commutative property

Systems connected in parallel can be replaced by a single system whose .

Page 39: discrete time signals and systems

Stability and causality in terms of

LTI are stable if and only if there impulse response is absolutely summable i.e.

LTI is causal if

Causality means that the difference equations describing the system can be solved recursively

39

Page 40: discrete time signals and systems

FIR systems – reflected in the h[n]

Ideal delay

Forward difference

Backward difference

Finite-duration impulse response (FIR) system are characterized by an impulse response has that has only a finite number of nonzero samples

40

Page 41: discrete time signals and systems

IIR systems – reflected in the

Accumulator

Infinite duration impulse response (IIR) system has whose duration extends to infinity

Stability

FIR systems always are stable, if each value of values is finite in magnitude

IIR systems can be stable, e.g.

41

Page 42: discrete time signals and systems

Cascading system examples

Determine if the following system is causal or not

Solution Since the impulse response of the cascaded

system satisfy the resulting cascaded system is stable

Any FIR system can be made causal by cascading it with a sufficiently long delay

42

Page 43: discrete time signals and systems

Cascading system examples

Determine the impulse response of the following cascaded systems

An inverse system is given by

43

Page 44: discrete time signals and systems

Linear constant-coefficient difference equations

The Nth order linear constant coefficient equations are a subclass of linear time invariant systems

The general form of these equations is

44

Page 45: discrete time signals and systems

Example of difference equations

Write the accumulator system in terms of difference equations

Solution The accumulator equation is given by

The output for can be written as

45

Page 46: discrete time signals and systems

Example of difference equations

Now the output sequence can be written as

Or alternatively it can be written as

If we compare the last equation with we find that

46

Page 47: discrete time signals and systems

Example of difference equations

The difference equations gives a better understanding of how we can be implement the accumulator system in this example

47

Page 48: discrete time signals and systems

Solving the Linear constant coefficient difference equationsDifference equations are similar to differential equations in continuous systems

The solution for the difference equations is composed from the homogeneous and particular solutions as described mathematically by

48

Page 49: discrete time signals and systems

Solving the Linear constant coefficient difference equationsThe homogeneous solution is obtained with

This means that the difference equation reduces to

Since has undetermined coefficients, a set of auxiliary conditions is required for the unique specification of for a given

49

Page 50: discrete time signals and systems

Solving the Linear constant coefficient difference equationsThese auxiliary conditions might consist of specifying fixed values of at specific values of , such as

The above step results in a set of linear equations for the undetermined coefficients, which can be solved to produce the required coefficients

50

Page 51: discrete time signals and systems

Recursive solution of the difference equations

The output samples for can be computed recursively by rearranging the difference equation as shown below

If the input , together with a set of auxiliary values is specified then the output can be computed

51

Page 52: discrete time signals and systems

Recursive solution of the difference equations

With available can be computed

To generate values of for , we can rearrange the linear constant coefficient difference equation as shown below

52

Page 53: discrete time signals and systems

Recursive computation example

Example: solve the following difference equation recursively

Assume that the input is and

53

Page 54: discrete time signals and systems

Recursive computation example

When , we can use recursive computation as follows

Let then

Since , then

54

Page 55: discrete time signals and systems

Recursive computation example

Next we do the same procedure when

To determine the output for , we express the difference equations in the form

55

Page 56: discrete time signals and systems

Recursive computation example

If we use the auxiliary conditions , we can compute for as follows

By combining the solutions for and , we got the following solution

56

Page 57: discrete time signals and systems

2.6 Frequency-domain representation of discrete time

signals and systemsThe frequency response of a given system with impulse response of is defined by

The output of any system characterized by its frequency response is given by

57

Page 58: discrete time signals and systems

Frequency response of the ideal delay system

Example determine the frequency response of an ideal delay system described by the following equation

Solution

To find the frequency response we first find the impulse response of the system which can be found by substituting

58

Page 59: discrete time signals and systems

Frequency response of the ideal delay system

This means that

Now the frequency response is given by

can be written in rectangular form as illustrated below

, from Euler identity

59

Page 60: discrete time signals and systems

2.7 Representation of sequences by Fourier transforms

In order to represent a given sequence by its Fourier transform we can use the following equation

However the inverse Fourier transform is given by

60

Page 61: discrete time signals and systems

Representation of sequences by Fourier transforms

For the discrete time signals, the value of is restricted to an interval of

The low frequency component of discrete time signals are located around

The high frequency component are located around

61

Page 62: discrete time signals and systems

Convergence of the Fourier transform

In general not all the signals have Fourier transform

Only the absolutely summable signals have their Fourier transform exits

Absolutely summable signals are signals satisfying the following condition

62

Page 63: discrete time signals and systems

Example

Determine if has a Fourier transform or not. If the Fourier transform exist, find the value of

Solution

The summation

If and only if this means that the discrete Fourier transform exists only for

63

Page 64: discrete time signals and systems

Example

The summation

If and only if this means that the discrete Fourier transform exists only for

64