Absolute Sorting - MATLAB Cody - MATLAB Central

Problem 60196. Absolute Sorting

Difficulty:Rate
Given an array with various numbers, your have to sort it by absolute value in ascending order.
For example, for the array [-20, -5, 10, 15], your function should return the array [-5, 10, 15, -20].

Solution Stats

90.0% Correct | 10.0% Incorrect
Last Solution submitted on Dec 27, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers9

Suggested Problems

More from this Author53

Problem Tags

Community Treasure Hunt

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

Start Hunting!