blob: 5bacf755cd73e376ed390b79fd80d9a392e1561b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example 6-8//
//Mapping an equation//
clc
//clears the console//
clear
//clears all existing variables//
//Mapping the expression//
disp('Z=m(9,20,21,29,30,31)')
disp(' A'' A ')
disp(' D''E'' D''E DE DE'' D''E'' D''E DE DE''')
disp('B''C'' 0 0 0 0 0 0 0 0 ')
disp('BC'' 0 0 0 0 1 1 0 0 ')
disp('BC 0 0 0 0 0 1 1 1 ')
disp('BC'' 0 1 0 0 0 0 0 0 ')
disp(' From the map, high outputs for 9,20,21,29,30,31')
//Therefore the kmap is displayed//
|