summaryrefslogtreecommitdiff
path: root/1658/CH22/EX22.1/Ex22_1.sce
blob: 147583f6bd78a04af308e229988bcf9b2e2eacbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
//e.g 22.1
ID=5*10**-3;
VDD=10;
RD=1*10**3;
RS=500;
VS=ID*RS;
disp('V',VS*1,"VS=");
VD=VDD-ID*RD;
disp('V',VD*1,"VD=");
VDS=VD-VS;
disp('V',VDS*1,"VDS=");
VGS=-VS;
disp('V',VGS*1,"VGS=");