% The Gaussian Q-function
%
% Copyright (c) 2006. Robert Morelos-Zaragoza. All rights reserved.
function r = Q(x)
r = 0.5*erfc(x/sqrt(2)); 