FUNCTION REFERENCE

cplxpair

Sort complex numbers into conjugate pairs.

Sort complex numbers into conjugate pairs.

Syntax

Z = cplxpair(A)

Syntax

Z = cplxpair(A, tol)

Pairs complex conjugates in order of increasing real part, negative

imaginary part first, then the real elements in increasing order. Elements

with abs(imag(z)) <= tol*abs(z) (default tol = 100*eps) count as real.

Example

cplxpair([1+1i 2 1-1i])   % [1-1i 1+1i 2]

Differences from MATLAB: vectors only; no dim argument.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.