summaryrefslogtreecommitdiff
path: root/3630/CH16/EX16.6/Ex16_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3630/CH16/EX16.6/Ex16_6.sce')
-rw-r--r--3630/CH16/EX16.6/Ex16_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3630/CH16/EX16.6/Ex16_6.sce b/3630/CH16/EX16.6/Ex16_6.sce
new file mode 100644
index 000000000..1c01aa601
--- /dev/null
+++ b/3630/CH16/EX16.6/Ex16_6.sce
@@ -0,0 +1,14 @@
+clc;
+rf=1000;
+r1=1000;
+r2=2000;
+r3=4000;
+v1=[10 0 10];
+v2=[0 10 10];
+v3=[10 0 10];
+for i=1:3
+Vout(1,i)=(rf/r1)*v1(1,i)+(rf/r2)*v2(1,i)+(rf/r3)*v3(1,i);
+end
+disp('V',Vout(1,1),"Vout(1,1)=");
+disp('V',Vout(1,2),"Vout(1,2)=");
+disp('V',Vout(1,3),"Vout(1,3)=");