From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1514/CH2/EX2.1/ch2_2_1.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1514/CH2/EX2.1/ch2_2_1.sce (limited to '1514/CH2/EX2.1/ch2_2_1.sce') 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)') -- cgit