blob: 7b352c75ec6a812ec1799481712d2d6dbb794c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//Example 3.4 Simplify expression using k-map
clc; //clears the console window
clear; //clears the variable browser
disp('The given K map for function G = ')
disp(' A''B'' A''B AB AB''')
disp('C''D'' ')
disp('C''D 1 ')
disp('CD 1 ')
disp('CD'' 1 ') //The kmap for G is displayed//
disp('The given K map for function H = ')
disp(' A''B'' A''B AB AB''')
disp('C''D'' ')
disp('C''D 1 1 ')
disp('CD 1 ')
disp('CD'' 1 ') //The kmap for H is displayed//
disp('The solution for G is')
disp('G = ABC + ABD')
disp('The solution for H is')
disp('H = BC''D + ABC')
|