blob: d40d541d80a01c2dd42e4ea96bb38bfa12a351d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Exa Misc. 6.11
clc;
clear;
close;
format('v',6)
// Given data
R1 = 10;// in k ohm
R2 = 20;// in k ohm
R3 = 10;// in k ohm
R_F = 20;// in k ohm
Vin1 = 2;// in V
Vin2 = 1;// in V
// The output voltage,
Vo = ((-R_F/R1)*Vin1) - ((R_F/R2)*Vin2);// in V
disp(Vo,"The output voltage in V is");
|