필터 지우기
필터 지우기

I need to have output of qfunc as a handle function

조회 수: 1 (최근 30일)
farah arabian
farah arabian 2017년 12월 5일
댓글: Walter Roberson 2017년 12월 6일
all,
I need to have output of qfunc as a handle function but I face following error:
error: """Error using qfunc
The argument of the Q function must be a real array."""
so does anybody know how can I use handle function in qfunction??????
myf = @(ebn0)BER32APSK(c,M,ebn0)-p;
and inside of BER32APSK I would have:
fsum = fsum + qfunc(sqrt(((d2)*(log2(M))*ebn0)/2));

채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 5일
One of d2 or log2(M) or ebn0 are not real-valued.
In particular check for the possibility that M is negative, as log of a negative number would give imaginary values.
  댓글 수: 14
farah arabian
farah arabian 2017년 12월 6일
hey Walter....thanks for your comment body...the problem solved by taking x0=[1 200] and I was wrong for the range because my answer is 137.7241 dB.
Walter Roberson
Walter Roberson 2017년 12월 6일
I saw values over 1200 for sure, so I would recommend you use at least 1500 as the upper bound.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by