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 --- 2444/CH4/EX4.1/ex4_1.sce | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 2444/CH4/EX4.1/ex4_1.sce (limited to '2444/CH4/EX4.1/ex4_1.sce') diff --git a/2444/CH4/EX4.1/ex4_1.sce b/2444/CH4/EX4.1/ex4_1.sce new file mode 100755 index 000000000..dd82b5bdc --- /dev/null +++ b/2444/CH4/EX4.1/ex4_1.sce @@ -0,0 +1,39 @@ +// Exa 4.1 +clc; +clear; +close; +format('v',8) +// Given data +V_CC = 20;// in V +I_C= 2*10^-3;// in A +I_CQ= I_C;// in A +I_E=I_C;// in A +R_C = 3;// in k ohm +R_C = R_C * 10^3;// in ohm +R_L = 12;// in k ohm +R_L = R_L * 10^3;// in ohm +R_E = 2;// in k ohm +R_E = R_E * 10^3;// in ohm +V_CE=0:0.1:20;// in V +I_C_sat= (V_CC-V_CE)/(R_C+R_E)*10^3;// in mA +subplot(121) +plot(V_CE,I_C_sat); +xlabel("V_CE in volts") +ylabel("I_C in mA") +title("DC load line") +Rac= R_C*R_L/(R_C+R_L);// in ohm +V_CEQ= V_CC-I_CQ*(R_C+R_E);// in V +I_Csat= I_CQ+V_CEQ/Rac;// in A +I_Csat=I_Csat*10^3;// in mA +V_CEoff= V_CEQ+I_CQ*Rac;// in V +subplot(122) +plot([V_CEoff 0],[0,I_Csat]) +xlabel("V_CE in volts") +ylabel("I_C in mA") +title("AC load line") +// Maximum peak output signal +POSmax= I_CQ*Rac;// in V +// Peak-to-peak value of output signal +PP_out_sig= 2*POSmax;// in V +disp(PP_out_sig,"Peak-to-peak value of output signal in volts is : ") +disp("DC and AC load line shown in figure.") -- cgit