- #1
fahim
- 2
- 0
Homework Statement
hi... how can i write this equation in matlab
Homework Equations
Pf = Q(Qinverse(Pd)(1+SNR) + SNR * square root(N/2))
where Q is the q function
The Attempt at a Solution
I tried the equation with the following
Pf = qfunc(qfuncinv(Pd)*(1+SNR)+SNR*(sqrt(N./2)));
But it is showing the folowing error
? Error using ==> qfunc at 19
The argument of the Q function must be a real array.
Error in ==> part1 at 5
Pf = qfunc(qfuncinv(Pd)*(1+SNR)+SNR*(sqrt(N./2)));