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

 Akzeptierte Antwort

Star Strider
Star Strider am 2 Dez. 2014

1 Stimme

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 Kommentare

Robin
Robin am 2 Dez. 2014
Done, thank you very much!
Star Strider
Star Strider am 2 Dez. 2014
My pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by