summaryrefslogtreecommitdiff
path: root/1241/CH6/EX6.4/exa6_4.sce
blob: 7f856011a0c8ccba213c17bdc711d0d2c6d995a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 6-4//
//minterm designation of AB''C''D''//
clc
//clears the window//
clear
//clears all existing variables//
disp('copy original term')
disp(' AB''C''D''  ')
disp(' substitute ones for nonbarred letters and zeroes for barred letters ')
disp('after substitution')
disp(' 1000 ')
a=bin2dec('1000')
disp('the decimal equivalent of 1000 is:')
disp(a)
disp(' Therefore decimal subscript of m is 8 ')
disp(' AB''C''D'' = m8  ')
//result is displayed//