blob: 15153a293c35d043395b55fd670d4e3cf0e1e575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc;
//e.g 22.3
ID=1.5*10**-3;
VDS=10;
IDSS=5*10**-3;
VP=-2;
VDD=20;
//ID=IDSS*(1-(VGS/VP))**2
VGS=VP*(1-(ID/IDSS));
VS=-VGS;
RS=(VS/ID);
disp('ohm',RS*1,"RS=");
RD=((VDD-VDS)/ID)-RS;
disp('Kohm',RD*10**-3,"RD=");
|