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

 Réponse acceptée

Star Strider
Star Strider le 2 Déc 2014

1 vote

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 commentaires

Robin
Robin le 2 Déc 2014
Done, thank you very much!
Star Strider
Star Strider le 2 Déc 2014
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by