p2rect
p2rect (z)
The p2rect function returns a complex value in rectangular coordinates derived from the complex value z which is assumed to be in polar coordinates (magnitude is stored in the real part and the angle, in radians, in the imaginary part of z).
Examples
Assume waveIn and waveOut are complex.
waveOut = p2rect(waveIn)
sets each point of waveOut to the rectangular coordinates derived from the magnitude in the real part and the angle (in radians) in the imaginary part of the points in waveIn.
You may get unexpected results if the number of points in waveIn differs from the number of points in waveOut.