From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 2075/CH6/EX6.4/pe6_4.sce | 49 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 25 deletions(-) (limited to '2075') diff --git a/2075/CH6/EX6.4/pe6_4.sce b/2075/CH6/EX6.4/pe6_4.sce index 789a997fa..a61dd5cc0 100755 --- a/2075/CH6/EX6.4/pe6_4.sce +++ b/2075/CH6/EX6.4/pe6_4.sce @@ -1,25 +1,24 @@ -//example 6.4 -clc; funcprot(0); -// Initialization of Variable -Vd=28;//V -f=100;//frequency -I=50;//current -//calculation -Rl=(Vd-.3)/I; -disp(Rl*1000,"load resistance in ohm:") -printf('thus pick Rl=560ohm') -Rl=560; -Vp=2.4; -Ib=500;//microAmp -Rb=(Vp-.9)/Ib; -disp(Rb*1000,"max value of Rb is in kohm:") -printf('thus pick Rb=2.2kohm') -Vl=Vd-.3; -D=.5;//duty cycle -Ip=Vl/Rl; -disp(Ip*1000,"load current in mA:") -Pl=D*Vl*Ip; -disp(Pl*1000,"load power in mW:") -Pq=D*Ip*.3; -disp(Pq*1000,"power delivered in mW:") -clear() +//example 6.4 +clc; funcprot(0); +// Initialization of Variable +Vd=28;//V +f=100;//frequency +I=50;//current +//calculation +Rl=(Vd-.3)/I; +disp(Rl*1000,"load resistance in ohm:") +printf('thus pick Rl=560ohm') +Rl=560; +Vp=2.4; +Ib=500;//microAmp +Rb=(Vp-.9)/Ib; +disp(Rb*1000,"max value of Rb is in kohm:") +printf('thus pick Rb=2.2kohm') +Vl=Vd-.3; +D=.5;//duty cycle +Ip=Vl/Rl; +disp(Ip*1000,"load current in mA:") +Pl=D*Vl*Ip; +disp(Pl*1000,"load power in mW:") +Pq=D*Ip*.3; +disp(Pq*1000,"power delivered in mW:") \ No newline at end of file -- cgit