blob: 8526498faf3816b1056dcf2f7e8f1c0610780c80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Example4.9 // Determine the non-inverting input voltage
clc;
clear;
close;
R1 = 10 ; //kilo ohm // input resistance
R2 = 25 ; //kilo ohm // feedback resistance
Voh = 10 ; // volt //output voltage
Vol = -10 ; // volt // output voltage
// upper voltage
V = (R1/(R1+R2)*Voh) ;
disp(' The upper voltage is = '+string(V)+' V ');
// Lower voltage
V = (R1/(R1+R2)*Vol) ;
disp(' The lower voltage is = '+string(V)+' V ');
|