1 2 3 4 5 6 7 8
clc; Vdd=20; Id=0.01; Rd=1000; Vgs=Vdd-Id*Rd; disp('V',Vgs,"Vgs=")//The answers vary due to round off error