y = qfunc(x)
y = qfunc(x) returns
the output of the Q function for each element of the real array x.
The Q function is one minus the cumulative distribution function of
the standardized normal random variable.
Input, specified as a real scalar or array.
Q function output, returned as a real scalar or array having
the same dimensions as input x.
Determine the values of the Q function for an input vector.
x = -4:0.1:4;
y = qfunc(x);
Plot the results.
Convert an input Eb/No in dB to its linear equivalent.
ebnodB = 7;
ebno = 10^(ebnodB/10);
Determine the QPSK error probability,
, given that:
Pb = qfunc(sqrt(2*ebno))
For a scalar x, the formula is
The Q function is related to the complementary error function,
erfc, according to
erf | erfc | erfcinv | erfcx | erfinv | qfuncinv
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries