
function res = tobool(M)        % if there is at least one zero then we count the result as zero

    res = min(M);

end
