blob: 48dee68679b324c36851103683db046da193c539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear;
clc;
//Example 5.11
Vtnd=1;
Vtnl=-2;
Knd=50;
Knl=10;
Vt=5;
Vo=poly(0,'Vo')
p=poly([4 -40 5],'Vo','c')
printf('\npossible solutions ::%.2f V\n',roots(p))
//since output voltage cannot be greater than supply voltage 5V
Vo=0.1;//(V)
I_D=Knl*(-Vtnl)^2;
printf('\ndrain current=%.3f microA\n',I_D)
|