Question: how to define qfunc in matlab?
Answer: y = qfunc( x ) returns the output of the Q function for each element of the real-valued input. The Q function is (1 – f), where f is the result of the cumulative distribution function of the standardized normal random variable.