summaryrefslogtreecommitdiff
path: root/135/CH7/EX7.1/EX1.sce
diff options
context:
space:
mode:
Diffstat (limited to '135/CH7/EX7.1/EX1.sce')
-rwxr-xr-x135/CH7/EX7.1/EX1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/135/CH7/EX7.1/EX1.sce b/135/CH7/EX7.1/EX1.sce
new file mode 100755
index 000000000..e96969d94
--- /dev/null
+++ b/135/CH7/EX7.1/EX1.sce
@@ -0,0 +1,10 @@
+// Example 7.1: Transfer curve
+clc, clear
+IDSS=12; // in mili-amperes
+VP=-5; // in volts
+// Plotting transfer curve
+VGS=[0:-0.01:VP]; // Gate source voltage in volts
+// Using Shockley's equation
+ID=IDSS*(1-VGS/VP)^2; // Drain current in mili-amperes
+plot(VGS,ID);
+xtitle("Transfer Curve","VGS (V)","ID (mA)"); \ No newline at end of file