//Example 2.26: Conversion of Boolean expression into minterm expression clc // Clears the console disp('g = x'' + xyz') disp(' = x''yz + x''yz'' + x''y''z + x''y''z'' + xyz') disp('g(x,y,z) = summation of minterms( 3,2,1,0,7) = summation of minterms ( 0,1,2,3,7)')//Since minterm numbers are usually written in numeric order. //the reduced expression is displayed.