diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2492/CH2/EX2.6 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2492/CH2/EX2.6')
-rwxr-xr-x | 2492/CH2/EX2.6/ex2_6.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2492/CH2/EX2.6/ex2_6.sce b/2492/CH2/EX2.6/ex2_6.sce new file mode 100755 index 000000000..549de380c --- /dev/null +++ b/2492/CH2/EX2.6/ex2_6.sce @@ -0,0 +1,20 @@ +// Exa 2.6
+format('v',9)
+clc;
+clear;
+close;
+// Given data
+R_L = 50;// in ohm
+V = 10;// in V
+R = 5;// in ohm
+V_D = (V*R)/(R_L+R);// in V
+R_D = (R_L*R)/(R_L+R);// in ohm
+I_D = V_D/R_D;// in A
+I_D = I_D * 10^3;// in mA
+plot([V_D,0],[0,I_D])
+xlabel("V_D in volts");
+ylabel("I_D in mA");
+title("DC load line");
+disp("DC load line shown in figure")
+slope = -1/R_D;
+disp(slope,"The slope of the dc load line is : ");
|