Code covered by the BSD License  

Highlights from
q function

from q function by Hassan Moradi
A function for computation of q-function for scalar and vector inputs

answer=q(x)
function answer=q(x)
answer=0.5*erfc(x/sqrt(2));

%answer=eval(answer);

Contact us at files@mathworks.com