diff options
Diffstat (limited to '569/CH6/EX6.20/6_20.sci')
-rwxr-xr-x | 569/CH6/EX6.20/6_20.sci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/569/CH6/EX6.20/6_20.sci b/569/CH6/EX6.20/6_20.sci new file mode 100755 index 000000000..112124310 --- /dev/null +++ b/569/CH6/EX6.20/6_20.sci @@ -0,0 +1,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)= ')
\ No newline at end of file |