Sort complex numbers into complex conjugate pairs - MATLAB Cody - MATLAB Central

Problem 1487. Sort complex numbers into complex conjugate pairs

Difficulty:Rate

Sort complex numbers into complex conjugate pairs.

Example:

 Input x = [3-6i -1-4i -1+4i 3+6i]
 Sorted output = [-1 - 4i  -1 + 4i   3 - 6i   3 + 6i]

Solution Stats

60.93% Correct | 39.07% Incorrect
Last Solution submitted on Jun 15, 2025

Solution Comments

Show comments

Problem Recent Solvers121

Suggested Problems

More from this Author9

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!