function y = minmap(pm) % MINMAP y = minmap(pm) Reshapes vector of minterm probabilities % Version of 12/9/93 % Reshapes a row or column vector pm of minterm % probabilities into minterm map format m = length(pm); n = round(log(m)/log(2)); a = fix(n/2); if m ~= 2^n disp('The number of minterms is incorrect') else y = reshape(pm,2^a,2^(n-a)); end