Converts a pair of real matrices to a complex matrix.
complex
z (NxK complex matrix) –
// The real elements xr = { 4 6, 9 8 }; // The imaginary elements xi = { 3 5, 1 7 }; z = complex(xr, xi);
After the code above, z will be equal to:
4 + 3i 6 + 5i 9 + 1i 8 + 7i
See also
Functions imag(), real()
imag()
real()