diff options
Diffstat (limited to '887/CH2/EX2.13')
-rwxr-xr-x | 887/CH2/EX2.13/2_13.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/887/CH2/EX2.13/2_13.sce b/887/CH2/EX2.13/2_13.sce new file mode 100755 index 000000000..c5a6e6f51 --- /dev/null +++ b/887/CH2/EX2.13/2_13.sce @@ -0,0 +1,8 @@ +clc
+//ex2.13
+R=[30 -10 -20;-10 22 -12;-20 -12 46]; //coefficient matrix
+V=[70;-42;0] //voltage matrix
+I=R\V; //current matrix(from R*I=V)
+disp(I(1),'current in mesh1 in amperes, i1=')
+disp(I(2),'current in mesh2 in amperes, i2=')
+disp(I(3),'current in mesh3 in amperes, i3=')
|