summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.26/2_26.sce
diff options
context:
space:
mode:
Diffstat (limited to '671/CH2/EX2.26/2_26.sce')
-rwxr-xr-x671/CH2/EX2.26/2_26.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/671/CH2/EX2.26/2_26.sce b/671/CH2/EX2.26/2_26.sce
new file mode 100755
index 000000000..83bd9f74d
--- /dev/null
+++ b/671/CH2/EX2.26/2_26.sce
@@ -0,0 +1,12 @@
+//convert current source to voltage source
+
+V1=4*2
+V2=2*2
+
+//Mesh Analysis
+
+A=[7,-3;-15,19]
+I=inv(A)*[6;-14]
+
+Vx=3*(I(1)-I(2))
+disp(Vx) \ No newline at end of file