Punto 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Parcial 2 Circuitos 3

syms t u A1 A2
r1=5

r1 = 5

r2=5

r2 = 5

r3=2

r3 = 2

c=2e-3

c = 0.0020

l=20e-3

l = 0.0200

vf=2

vf = 2

vf2=5 % t<0

vf2 = 5

t<0
vc0=-vf*r2/(r1+r2)

vc0 = -1

fplot(vc0,[-0.5,0])
ylim([-2,1])
title("Vc(t)")
grid on
hold on

1
t>0
vcf=0

vcf = 0

Rth=r3

Rth = 2

alpha=1/(2*Rth*c)

alpha = 125

wo=1/(sqrt(l*c))

wo = 158.1139

s1=-alpha+sqrt(alpha^2-wo^2)

s1 = -1.2500e+02 + 9.6825e+01i

s2=-alpha-sqrt(alpha^2-wo^2)

s2 = -1.2500e+02 - 9.6825e+01i

v(t)=A1*exp(s1*t)+A2*exp(s2*t)

2
v(t) =

v(t)=vpa(v(t))

v(t) =

iln=2.5

iln = 2.5000

vc(t)=A1*exp(s1*t)+A2*exp(s2*t)

vc(t) =

vc(0)

ans =

ic=vpa(c*diff(vc),5)

ic(t) =

irf=2.5

irf = 2.5000

icf=-iln+irf

icf = 0

A1=(1/c)*icf

A1 = 0

A2=-A1

A2 = 0

vc(t)=A1*exp(s1*t)+A2*exp(s2*t)

vc(t) =

vc(t)=vpa(vc(t))

vc(t) =

fplot(vc,[0,0.5])
ylim([-2,1])

3
title("Vc(t)")
grid on

You might also like