Sort by absolute value - MATLAB Cody - MATLAB Central

Problem 59811. Sort by absolute value

Difficulty:Rate
Given a list of numbers, arrange them in ascending order based on their absolute values.
For example, for the list [-30, -5, 11, 14], the sorted list would be [-5, 11, 14, -30].

Solution Stats

44.62% Correct | 55.38% Incorrect
Last Solution submitted on Feb 27, 2025

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers28

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!
Go to top of page