summaryrefslogtreecommitdiff
path: root/215/CH14/EX14.9/ex14_9.sce
blob: 0c6166c2bab61042e990ca7239cdc0d9f331007a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
//Example 14.9
//Install Symbolic toolbox
//Find the voltage v(t)
syms s
s=%s
//From figure 14.6
//Writing the KCL equation and taking the Laplace transform
V=4/(s*(s+4))+9/(s+4)
V1=4/(s*(s+4))
V2=9/(s+4)
V1p=pfss(V1)
v1=ilaplace(V1p(1))
v2=ilaplace(V1p(2)+V2)
v=v1+v2
disp(v,'v(t)=')