Académique Documents
Professionnel Documents
Culture Documents
The MATLAB should give you the following result for I2(s):
simple () command
Note the coefficients of s in different degrees are not grouped
together
MATLAB answers:
IMPULSE RESPONSE g(t)
Using the ilaplace() on G(S) will give you the
impulse response:
g =
1/(R1+R2)*(dirac(t)+exp(-1/2*(L+R1*R2*C)/L/C/(R1+R2)*t)*(-
(L+R1*R2*C)/L/C/(R1+R2)*cosh(1/2*t/L/C/(R1+R2)*(L^2-2*L*R1*R2*C+R1^2*R2^2*C^2-
4*R1^2*L*C)^(1/2))+(R1^2*R2^2*C^2+L^2-2*R1^2*L*C)/C/L/(L^2-
2*L*R1*R2*C+R1^2*R2^2*C^2-4*R1^2*L*C)^(1/2)/(R1+R2)*sinh(1/2*t/L/C/(R1+R2)*(L^2-
2*L*R1*R2*C+R1^2*R2^2*C^2-4*R1^2*L*C)^(1/2))))
Unit step response of the System
Note that the Laplace transform of u(t) is 1/s
Let U(s) = 1/s in the command window type the
following:
Resulting to:
i2 =
((1/2*(L^2-2*L*R1*R2*C+R1^2*R2^2*C^2-4*R1^2*L*C)^(1/2)-1/2*L-
1/2*R1*R2*C)*exp(-1/2*(-(L^2-2*L*R1*R2*C+R1^2*R2^2*C^2-
4*R1^2*L*C)^(1/2)+L+R1*R2*C)*t/L/C/(R1+R2))+(1/2*(L^2-
2*L*R1*R2*C+R1^2*R2^2*C^2-4*R1^2*L*C)^(1/2)+1/2*L+1/2*R1*R2*C)*exp(-
1/2*((L^2-2*L*R1*R2*C+R1^2*R2^2*C^2-
4*R1^2*L*C)^(1/2)+L+R1*R2*C)*t/L/C/(R1+R2)))/(L^2-
2*L*R1*R2*C+R1^2*R2^2*C^2-4*R1^2*L*C)^(1/2)/(R1+R2)
vpa(A,d) command
Variable precision arithmetic (vpa) used to
reduce the fractional part of the variable to
decimal.
Activity
For the previous RLC circuit, let
R1 = 4000
R2= 1000
C = 1/8 F
L = 4/13 H
3a and 4a
3b and 4b 3c and 4c
Activity
5. Determine the Step response and 6. impulse
response of the following circuit
5a and 6a
5b and 6b
Requirements:
1. M-files
2. Word document containing the results