I need to have output of qfunc as a handle function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
farah arabian
am 5 Dez. 2017
Kommentiert: Walter Roberson
am 6 Dez. 2017
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));
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 5 Dez. 2017
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 Kommentare
Walter Roberson
am 6 Dez. 2017
I saw values over 1200 for sure, so I would recommend you use at least 1500 as the upper bound.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!