blob: 319ef9534527377f42d4b7e4cc5ab2fc17a1c4e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Exa Misc. 6.13
clc;
clear;
close;
format('v',6)
// Given data
R1 = 20;// in k ohm
R3 = 10;// in k ohm
R2 = R3;// in k ohm
R_F = 20;// in k ohm
Vin1 = 2;// in V
Vin2 = 2.1;// in V
// The input voltage at non-inverting terminal,
V_A = (R2*Vin2)/R1;// in V
// The output voltage, by using super position theorm,
Vo = ((-R_F/R1)*Vin1) + ((1+(R_F/R1))*(R1/(R2+R3))*V_A);// in V
disp(Vo,"The output voltage in V is");
|