summaryrefslogtreecommitdiff
path: root/3630/CH16/EX16.6/Ex16_6.sce
blob: 1c01aa601de019518efebbac3324381d72dd764c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)=");