210 likes | 375 Views
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.
E N D
Net 222: Communications and networks fundamentals (Practical Part) Tutorial 5 : Matlab – Aljabric equations. – convolution Networks and Communication Department
Lecture Contents • Solving Algebraic equations: • Simple equations. • Quadratic equations. • Plotting Symbolic Equations. • Computing derivatives. • Integration. • Convolution. Networks and Communication Department
Simple equations Networks and Communication Department
Example • Solve : x+5=0 Networks and Communication Department
Quadratic equations Networks and Communication Department
Example • Solve : Networks and Communication Department
Plotting Symbolic Equations Networks and Communication Department
Example 1: Networks and Communication Department
Example 2: Networks and Communication Department
Computing derivatives Networks and Communication Department
Example • Find the derivative for : f = sin(5*x) Networks and Communication Department
Integration Networks and Communication Department
Example 1: • Find the integration for x^2 : Networks and Communication Department
Example 2: Networks and Communication Department
Convolution Networks and Communication Department
Convolution Sum The 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
Convolution Sum (Cont.) • The Figure below illustrates the definition of the impulse response h[n] and the relationship of Networks and Communication Department
Example • Consider an LTI system with impulse response h[n] and input x[n]. Networks and Communication Department
x = [0.5 2 0 0 0]; h = [1 1 1 0]; y = conv(x,h); n1= 0 : (length(x)-1); subplot(2,2,1); stem(n1,x,’LineWidth’,3); xlabel(‘n’); ylabel(‘x[n]’); n2= 0 : (length(h)-1); subplot(2,2,2); stem(n2,h,’LineWidth’,3); xlabel(‘n’); ylabel(‘h[n]’); n3 = 0 : (length(y)-1); subplot(2,2,[3,4]); stem(n3,y,’LineWidth’,3); xlabel(‘n’); ylabel(‘y[n]’);
The End Any Questions ? Networks and Communication Department