Why do you pass n in your function (and not x) ?
Agree with above. According to the description you are given the randomized array.
This solution should be wrong, at least according to the description.
Sort a list of complex numbers based on far they are from the origin.
4397 Solvers
Back to basics 9 - Indexed References
397 Solvers
426 Solvers
07 - Common functions and indexing 3
332 Solvers
Matlab Basics - Logical Tests I
199 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!