Compare and sort (complex-valued) arrays

Minimize absolute distance between corresponding elements of two complex vectors.
191 Downloads
Updated 6 Jun 2013

View License

Takes two (possibly) complex-valued lists and rearranges one of them so that each element in one list is closest to the element with the same index on the other list. Minimize absolute distance between corresponding elements in the two lists.

Cite As

Ismail Hameduddin (2026). Compare and sort (complex-valued) arrays (https://www.mathworks.com/matlabcentral/fileexchange/42124-compare-and-sort-complex-valued-arrays), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Operators and Elementary Operations in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0