MATLAB: Problem about the qfunc

qfunc

I input the following codes in Matlab,
syms x
solve(qfunc(x+0.05)+qfunc(x+0.05) == 0.0036)
There comes out an error: "The argument of the Q function must be a real array."
Sincerely Robin

Best Answer

It seems qfunc doesn’t work with symbolic variables.
However, all is not lost! You just have to create a version of qfunc that will work with them.
Like this:
syms x
Q(x) = 0.5 * erfc(x/sqrt(2));
z = solve(Q(x+0.05)+Q(x+0.05) == 0.0036)
that produces:
z =
2.861237726243005680993556752081