problem about the 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

 Accepted 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

2 Comments

Done, thank you very much!
My pleasure!

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!