summaryrefslogtreecommitdiff
path: root/2885/CH6/EX6.14/ex6_14.sce
blob: 3c61c4ad251b440e1c9c299a6eae5c7ebbb6dcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Calculate Vgs and Rs
clear;
clc;
//soltion
//given

Vp=2;//V
Idss=1.75*10^-3;//A      //drain current at Vgs=0
Vdd=24;//V             //drain to supply source
Id=1*10^-3;//A       //drain current
Vgs=(-Vp)*(1-sqrt(Id/Idss));
Rs=abs(Vgs)/Id;
printf("Vgs = %.3f V\n",Vgs);
printf("Rs = %.0f Ω",Rs);