summaryrefslogtreecommitdiff
path: root/2498/CH6/EX6.m.2/ex_m_6_2.sce
blob: 2d6f66206e99eb489aa7bb3861ea9c31c7032cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Exa Misc. 6.2
clc;
clear;
close;
format('v',6)
// Given data
R1 = 10;// in k ohm
R_F = 1000;// in k ohm
// Vin/R1 = -Vo/R_F and Vo/Vin = Ao = -R_F/R1
Ao = abs(-R_F/R1);// in k ohm
disp(Ao,"The closed loop gain is");
Vin = 30;// in mV
Vin = Vin  * 10^-3;// in V
// The output voltage,
Vo =-Ao*Vin;// in V
disp(Vo,"The output voltage in V is");

// Note: The loop gain will be unit less.