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 /45/CH4/EX4.7/exmple_4_7.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 '45/CH4/EX4.7/exmple_4_7.sce')
-rwxr-xr-x | 45/CH4/EX4.7/exmple_4_7.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/45/CH4/EX4.7/exmple_4_7.sce b/45/CH4/EX4.7/exmple_4_7.sce new file mode 100755 index 000000000..b69987486 --- /dev/null +++ b/45/CH4/EX4.7/exmple_4_7.sce @@ -0,0 +1,10 @@ +//example 4.7 +clc; +clear; +n=input('Enter the no.of terms in ur expression :');//accepting input from user +for i=1:n +a(1,i)=input('Enter the term (0-9) :'); +end; +disp ('Since at the decoder output we get all the minterms we use them to get the required boolean functions by giving the output lines numbered ' ); +disp(a); //displying the result +disp('to a mlti-input OR gate.'); |