Net 222: Communications and networks fundamentals ( Practical Part)

Post on 23-Feb-2016

64 views 0 download

Tags:

description

Net 222: Communications and networks fundamentals ( Practical Part). Tutorial 5 : Matlab – Aljabric equations. – convolution . Lecture Contents. Solving Algebraic equations: Simple equations. Quadratic equations. Plotting Symbolic Equations. Computing derivatives. Integration. - PowerPoint PPT Presentation

transcript

NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART)Tutorial 5 : Matlab – Aljabric equations. – convolution

Networks and Communication Department

1

Lecture Contents

Networks and Communication Department

2

Solving Algebraic equations: Simple equations. Quadratic equations. Plotting Symbolic Equations. Computing derivatives. Integration.

Convolution.

Simple equations3

Networks and Communication Department

Example

Networks and Communication Department

4

Solve : x+5=0

Quadratic equations5

Networks and Communication Department

Example

Networks and Communication Department

6

Solve :

Plotting Symbolic Equations7

Networks and Communication Department

Example 1:

Networks and Communication Department

8

 

Example 2:

Networks and Communication Department

9

 

Computing derivatives10

Networks and Communication Department

Example

Networks and Communication Department

11

Find the derivative for :

f = sin(5*x)

Integration12

Networks and Communication Department

Example 1:

Networks and Communication Department

13

Find the integration for x^2 :

Example 2:

Networks and Communication Department

14

Convolution15

Networks and Communication Department

Networks and Communication Department

16

Convolution SumThe Convolution sum:

The equation below defines the convolution of two sequences and denoted by:

(The convolution sum or superposition sum)And the operation on the right hand side (equation in bold ) is known as the convolution of the sequence and h.

It is commonly called the convolution sum. Thus, again, we have the fundamental result that the output of any discrete-time LTI system is the convolution of the input with the impulse response of the system.

Networks and Communication Department

17

Convolution Sum (Cont.) The Figure below illustrates the definition of the impulse response h[n] and the

relationship of

Example

Networks and Communication Department

18

Consider an LTI system with impulse response h[n] and input x[n].

Networks and Communication Department

19

20

x = [ 0 . 5 2 0 0 0 ] ;h = [ 1 1 1 0 ] ;y = c o n v ( x , h ) ;

n 1 = 0 : ( l e n g t h ( x ) - 1 ) ;s u b p l o t ( 2 , 2 , 1 ) ;s t e m ( n 1 , x , ’ L i n e W i d t h ’ , 3 ) ;x l a b e l ( ‘ n ’ ) ;y l a b e l ( ‘ x [ n ] ’ ) ;

n 2 = 0 : ( l e n g t h ( h ) - 1 ) ;s u b p l o t ( 2 , 2 , 2 ) ;s t e m ( n 2 , h , ’ L i n e W i d t h ’ , 3 ) ;x l a b e l ( ‘ n ’ ) ;y l a b e l ( ‘ h [ n ] ’ ) ;

n 3 = 0 : ( l e n g t h ( y ) - 1 ) ;s u b p l o t ( 2 , 2 , [ 3 , 4 ] ) ;s t e m ( n 3 , y, ’ L i n e W i d t h ’ , 3 ) ;x l a b e l ( ‘ n ’ ) ;y l a b e l ( ‘ y [ n ] ’ ) ;

21

Networks and Communication Department

Any Questions ?The End