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

 채택된 답변

Star Strider
Star Strider 2014년 12월 2일

1 개 추천

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

Robin
Robin 2014년 12월 2일
Done, thank you very much!
Star Strider
Star Strider 2014년 12월 2일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2014년 12월 2일

댓글:

2014년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by