blob: e50f02befec4b119e4689f7497fd433240c24746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 3.7
// this program needs kmap.sci and noof.sci
clc;
disp('The kanaurgh map for given truth table will be :');
disp(' C''D'' C''D CD CD'''); //displaying the given kmap
disp('A''B'' 1 0 0 0');
disp('A''B 0 0 0 0');
disp('AB x x x x');
disp('AB'' 0 0 x x');
disp('The truth table has output one only for the input condition 0000. The corresponding fundamental product is A''B''C''D''');
k=[1 0 0 0 ; 0 0 0 0; 0 0 0 0;0 0 0 0];
kmap(k);//calling the Kmap function
|