summaryrefslogtreecommitdiff
path: root/45/CH3/EX3.10/example_3_10.sce
blob: 2e227ef5f7be289fb8da46baef6e59e7c1c1b0d5 (plain)
1
2
3
4
5
6
7
8
9
//example 3.10 
// this program needs kmappos.sci and noof.sci

k=[0 0 0 0;0 0 0 1; 1 1 1 1;1 1 1 1];
disp("The minimal expression of Y from the following Kmap is :');
kmap(k);
disp('After complimenting and simplifying the Krarnugh map we get Y =:');
k=[1 1 1 1;1 1 1 0; 0 0 0 0;0 0 0 0 ];
kmap(k); //calling the Kmap function