summaryrefslogtreecommitdiff
path: root/863/CH9/EX9.9/Ex9_9.txt
blob: 0bc2b5b0f04252a6517acf17d133bbd2caecc991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Caption:Calculate drain current
//Ex9.9
clc;
clear;
close;
V=5//Output peak voltage(in volts)
p=1//Pulse width(in ms)
s=50//Space width(in micro sec)
C=0.03//Capacitance(in micro farad)
Vp=6//Gate source voltage(in volts)
I1=C*V*1000/p
Vi=Vp+1
R1=Vi/I1
Id=I1*p/s
disp(Id,'Drain current(in mA)=')