Problem 716. Arrange vector in ascending order

Arrange a given vector in ascending order.

 input  = [4 5 1 2 9];
 output = [1 2 4 5 9];

Solution Stats

91.22% Correct | 8.78% Incorrect
Last solution submitted on Dec 04, 2016

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more