summaryrefslogtreecommitdiff
path: root/1514/CH2/EX2.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1514/CH2/EX2.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1514/CH2/EX2.1')
-rwxr-xr-x1514/CH2/EX2.1/ch2_2_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1514/CH2/EX2.1/ch2_2_1.sce b/1514/CH2/EX2.1/ch2_2_1.sce
new file mode 100755
index 000000000..e5d6df7bb
--- /dev/null
+++ b/1514/CH2/EX2.1/ch2_2_1.sce
@@ -0,0 +1,22 @@
+//chapter 2
+//example 2.1
+//page 33
+clear all;
+clc ;
+//given
+Rl=100;//load resistor in ohm
+Es=5;//supply voltage in volts
+//for point A
+If1=0;//forward current through diode ,thus drop across resistor is 0 v
+Ef1=5; //Ef=voltage drop across diode in volts
+
+//for point B
+Ef2=0;
+If2=Es/Rl; //in Ampere
+If2=If2*10^3;//in mA
+
+plot([Ef1 Ef2],[If1 If2],'-.*')
+xtitle('dc load line','voltage drop across diode(V)','current through diode(mA)')
+a=gca();
+a.data_bounds=[-0.5 -0.5;5.1 52]
+printf('dc load line passes through points A(5,0),B(0,50)')