1 2 3 4 5 6 7 8 9 10
clc; v1=3; v2=6; v3=4; rf=10000; r1=10000; r2=10000; r3=10000; Vout=-rf*((v1/r1)+(v2/r2)+(v3/r3)); disp('V',Vout,"Vout=");