This one should work for all of the test cases except that you have some numerical precision issues with the last test case. Please replace it with a numerical comparison that takes into account precision (my code is returning numbers with no decimal point but the test code returns something less pretty).
Sort a list of complex numbers based on far they are from the origin.
4397 Solvers
383 Solvers
314 Solvers
Arrange vector in ascending order
629 Solvers
Justify the character string in center with proportional fonts
57 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!