summaryrefslogtreecommitdiff
path: root/181/CH6/EX6.16/example6_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /181/CH6/EX6.16/example6_16.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '181/CH6/EX6.16/example6_16.sce')
-rwxr-xr-x181/CH6/EX6.16/example6_16.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/181/CH6/EX6.16/example6_16.sce b/181/CH6/EX6.16/example6_16.sce
new file mode 100755
index 000000000..cb9458ce9
--- /dev/null
+++ b/181/CH6/EX6.16/example6_16.sce
@@ -0,0 +1,25 @@
+// Determine Rd
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 6-16 in page 289
+
+clear; clc; close;
+
+// Given data
+K=0.25*10^-3; // Constant in mA/V^2
+Vt=2; // Voltage given in V
+Vdd=16; // Drain voltage in V
+Vgg=[4 10]; // Gate voltage values in V
+
+// Calculation
+for i=1:2
+ id=K*(Vgg(i)-2)^2;
+ rd=(16-(Vgg(i)-2))/id;
+ printf("Rd when Vgg is %d V = %0.1e ohm\n",Vgg(i),rd);
+end
+
+// Result
+// (a) Rd = 14 K-ohm
+// (b) 500 ohm \ No newline at end of file