diff options
Diffstat (limited to '2075/CH5/EX5.1/pe5_1.sce')
-rwxr-xr-x | 2075/CH5/EX5.1/pe5_1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2075/CH5/EX5.1/pe5_1.sce b/2075/CH5/EX5.1/pe5_1.sce new file mode 100755 index 000000000..f91aad343 --- /dev/null +++ b/2075/CH5/EX5.1/pe5_1.sce @@ -0,0 +1,13 @@ +//example 5.1
+clc; funcprot(0);
+clf()
+//initialization of variable
+Vth=3.6;
+Vgs=4;//voltage
+//volt change beyond 3.6 causes a major increase in Id as it is cut off voltage
+printf('Id=0 from 0 to 2 so not shown in the graph')
+x=linspace(2,3.6,300);
+y=(-2.5*(x-3.6))^.5;
+plot(x,y)
+xtitle('Vgs vs Id','Vgs','Id');
+clear()
|