//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//