Skip to Main Content Skip to Search
Product Documentation

qfunc - Q function

Syntax

y = qfunc(x)

Description

y = qfunc(x) is one minus the cumulative distribution function of the standardized normal random variable, evaluated at each element of the real array x. For a scalar x, the formula is

The Q function is related to the complementary error function, erfc, according to

Examples

The example below computes the Q function on a matrix, element by element.

x = [0 1 2; 3 4 5];
format short e % Switch to floating point format for displays.
y = qfunc(x)
format % Return to default format for displays.

The output is below.

y =

  5.0000e-001  1.5866e-001  2.2750e-002
  1.3499e-003  3.1671e-005  2.8665e-007

See Also

erf | erfc | erfcinv | erfcx | erfinv | qfuncinv

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS