Starting from:

$30

ECE3780-Lab 4 Analysis of Continuous-Time Systems Using Laplace Solved

Part I                

  

We will continue using Matlab’s symbolic math processor in this lab.

 

We will analyse Problem 4.4.13 as shown in the next figure:

 

Figure 1. 

Using basic circuit theory

6

−𝑋(𝑠)+𝐼1(𝑠)+ 𝐼2(𝑠)+𝐼2(𝑠) = 0

𝑠

𝐼3(𝑠)+𝐼2(𝑠) = 𝐼1(𝑠)

𝐼2(𝑠) = −2π‘Œ(𝑠)

3

−𝑋(𝑠)+𝐼1(𝑠)+ 𝐼3(𝑠)+π‘Œ(𝑠) = 0

𝑠

Using the symbolic tool in Matlab we can form the matrix problem

 

 −1

 

 0

 0
1

−1

0
6

 +1

𝑠

1

−1/2
0 𝑋                      0

 πΌ

10  [𝐼𝐼12] = [ π‘Œ0 ]
3   −π‘Œ [−1 1 0 3/𝑠]

as

 

syms Y s   A = sym([-1 1 (1+6/s) 0; 0 -1 1 1 ; 0 0 -1/2 0; -1 1 0 3/s]) B = sym([0; 0; Y; -Y]) inv(A)*B 

  

ans = 

  

 - (Y*s)/3 - (2*Y*(s^2 + 12*s + 18))/(3*s)                - (Y*s)/3 - Y*((2*s)/3 + 6)                                       -2*Y                - (Y*s)/3 - Y*((2*s)/3 + 4)
 

From the matrix inversion we have  

 

                                           π‘                    2π‘Œ(𝑠)[𝑠2 +12𝑠 +18]

− π‘Œ(𝑠)−  = 𝑋(𝑠)

                                           3                                     3𝑠

 

Using again symbolic math expressions

 

ff =  - (Y*s)/3 - (2*Y*(s^2 + 12*s + 18))/(3*s) simplify(ff) 

  

ans = 

  

-(Y*(s^2 + 8*s + 12))/s
 

We then have  

 

π‘Œ(𝑠)[𝑠2 +8𝑠 +12]

−= 𝑋(𝑠)

 2 = 𝐻(𝑠)                                       (1) [𝑠 +8𝑠+12]

 

And that is how you can easily calculate the transfer function of a system. The impulse response of the system is just the inverse that can also easily be calculated as  

 

H = sym(-s/(s^2 + 8*s +12)) imp_response = ilaplace(H) 

  

imp_response = 

  

exp(-2*t)/2 - (3*exp(-6*t))/2 
 

And literally that is what you obtained, if your circuit was in a box (red rectangle) you try to identify it by doing  

 

  

Once you have h(t) you can compute any output for any input signal x(t) by convolutions. Most importantly, if h(t) models degradation of a signal, like an undesired echo in audio, motion blurring in an image etc., knowing h(t) may be the first step to counteract these unwanted degradations.  

 

If you want to have an idea of the frequency response of a system, you can easily do this in Matlab as identifying the coefficients of the polynomials on H(s) (equation 1 above) and doing the following:

 

b = [0 -1]; a = [1 8 12]; w = logspace(-1,1); freqs(b,a,w) 

 

Figure 2. 

 

There is no lab equipment in the world that can generate an impulse though or an oscilloscope that can record it. But it is very easy to have x(t) be a unit step. It is just a constant voltage connected to a switch that when you close it and feed the system you can easily check for the step response. Let us introduce a second system in the green square in the figure.  

 

Question:   What is the transfer function H2(s) = Y(s)/X2(s)

 

   

 

Question:   What is the system within the green box doing?

 

Question:   What is the final Y(s) and y(t) for the unit step input?

 

Question:   From what you know about Linear Time-Invariant systems, can you explain in the time domain the results you obtained in the last question?

 

Question:   Is the system in Figure 1 stable?  

 

You found an analog video system that you would like to connect to an analog TV. You do not have video coaxial cables and the cable you have available will attenuate higher frequencies and is modeled by the system in Figure 1.  

 

Question: Can you describe an analog circuit that can be connected to your available cable and compensate for the higher frequencies attenuation?

 

Hint 1: your nice input video signal is x(t) that enters h(t) and that output needs to go to the system you designed hi(t) that will be connected to your TV. Work in the Laplace domain.

  

Hint 2:  

 

  

 

 

 

Question:   You found that you have some spare general purpose 741 OpAmps. Can you use them for this project? You have been provided the data sheet to make such decision.

 

 Part II              

  

Following the same approach as before, calculate i) the transfer function, ii) the impulse response of the following circuit and iii) determine what type of filter is this.

 

R1 = 200;

C1 = 2e-6;

R2 = 200;

C2 = 1e-6;

R3 = 100;

C3 = 1e-6;

Rload = 1000;

  

 

More products