blob: 3b04fca73ad805c7a852de8427e1aedaa14ba602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Example 6-5//
//minterm designation of W''X''YZ''//
clc
//clears the window//
clear
//clears all existing variables//
disp('copy original term')
disp(' W''X''YZ'' ')
disp(' substitute ones for nonbarred letters and zeroes for barred letters ')
disp('after substitution')
disp(' 0010 ')
a=bin2dec('0010')
disp('therefore the decimal equivalent of 0010 is:')
disp(a)
disp(' Therefore decimal subscript of m is 2 ')
disp(' W''X''YZ'' = m2 ')
//result is displayed//
|