diff options
Diffstat (limited to 'Working_Examples/215/CH15/EX15.2/ex15_2.sce')
-rwxr-xr-x | Working_Examples/215/CH15/EX15.2/ex15_2.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Working_Examples/215/CH15/EX15.2/ex15_2.sce b/Working_Examples/215/CH15/EX15.2/ex15_2.sce new file mode 100755 index 0000000..ff6b08c --- /dev/null +++ b/Working_Examples/215/CH15/EX15.2/ex15_2.sce @@ -0,0 +1,15 @@ +clc
+//Example 15.2
+//Install Symbolic toolbox
+//Calculate the voltage
+//Selecting the current based model
+//From figure 15.6(b)
+//Writing the KCL equation for the voltage and taking the Laplace transform
+syms s
+s=%s
+Vc=-2*(s-3)/(s*(s+2/3))
+Vcp=pfss (Vc)
+Vcp1=ilaplace(Vcp(1))
+Vcp2=ilaplace(Vcp(2))
+vc=Vcp1+Vcp2
+disp(vc,'vc=')
\ No newline at end of file |