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 /182/CH4/EX4.6/example4_6.sce | |
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 '182/CH4/EX4.6/example4_6.sce')
-rwxr-xr-x | 182/CH4/EX4.6/example4_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/182/CH4/EX4.6/example4_6.sce b/182/CH4/EX4.6/example4_6.sce new file mode 100755 index 000000000..4b2cb87c4 --- /dev/null +++ b/182/CH4/EX4.6/example4_6.sce @@ -0,0 +1,12 @@ + +// example 4-6 in page 100 +clc; +// data give +Eb=1.5;// Full scale voltage in volts +R1=1e+3;//R1=1 K-ohm +//calculation +for n=1:2 + E=Eb*(n/3);// 1/3rd and 2/3rd value of full scale + Rx=R1/((Eb/E)-1); + printf("at %d/3 FSD, Rx=%d ohm\n",n,Rx) +end |