summaryrefslogtreecommitdiff
path: root/569/CH6/EX6.20/6_20.sci
blob: 112124310581c85ca76ebca1e9c11cc15c22237c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// calculate the output voltage for different values of K
clc;
ei=100;
K=0.25;
disp('When K=0.25')
eo=[(K/6)/(1+(K/6))]*ei;
disp(eo,'output voltage (V)= ')
K=0.5;
disp('When K=0.5')
eo=[(K/6)/(1+(K/6))]*ei;
disp(eo,'output voltage (V)= ')
K=0.6;
disp('When K=0.6')
eo=[(K/6)/(1+(K/6))]*ei;
disp(eo,'output voltage (V)= ')
K=0.8;
disp('When K=0.8')
eo=[(K/6)/(1+(K/6))]*ei;
disp(eo,'output voltage (V)= ')