summaryrefslogtreecommitdiff
path: root/45/CH3/EX3.6/example_3_6.sce
blob: d5f6a75451c7d492645817136e34e9c59fd8777c (plain)
1
2
3
4
5
6
7
8
//example 3.6
// this program needs kmap.sci and noof.sci
 clc
 Y=[7 9 10 11 12 13 14 15];//given logic equation 
 k=[0 0 0 0;0 0 1 0 ; 1 1 1 1; 0 1 1 1]; // minimizing it using 4-variable kmap
 disp("The minimal expression of Y from the following Kmap is :');
 kmap(k); //calling the Kmap function