diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1994/CH2/EX2.5 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1994/CH2/EX2.5')
-rwxr-xr-x | 1994/CH2/EX2.5/Example2_5.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1994/CH2/EX2.5/Example2_5.sce b/1994/CH2/EX2.5/Example2_5.sce new file mode 100755 index 000000000..15d621fac --- /dev/null +++ b/1994/CH2/EX2.5/Example2_5.sce @@ -0,0 +1,12 @@ +//Chapter-2,Example2_5,pg 2_12
+n=4
+Vofs=5
+Res=Vofs/((2^n)-1)
+D1=bin2dec('1000')
+Vo1=Res*D1
+D2=bin2dec('1111')
+Vo2=Res*D2
+printf("output voltage1\n")
+printf("Vo1=%.2f V\n",Vo1)
+printf("output voltage2\n")
+printf("Vo2=%.2f V\n",Vo2)
|