summaryrefslogtreecommitdiff
path: root/911/CH10/EX10.1.A/ex_10_1_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH10/EX10.1.A/ex_10_1_a.sce')
-rw-r--r--911/CH10/EX10.1.A/ex_10_1_a.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH10/EX10.1.A/ex_10_1_a.sce b/911/CH10/EX10.1.A/ex_10_1_a.sce
new file mode 100644
index 000000000..e867e9871
--- /dev/null
+++ b/911/CH10/EX10.1.A/ex_10_1_a.sce
@@ -0,0 +1,13 @@
+//example 10.1(a)//
+clc
+//clears the screen//
+clear
+//clears all variables//
+g=2^8;
+//for easier calculation//
+V=20*(10^-3)*g;
+//voltage corresponding to logic 1//
+fs=(g-1)/g*V;
+//full scale output formula//
+disp(fs,'Full scale output (in V) =')
+//in volts// \ No newline at end of file